(function(root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD
        define(['angular'], factory);
    } else if (typeof exports === 'object') {
        // Node, CommonJS-like
        module.exports = factory(require('angular'));
    } else {
        // Browser globals (root is window)
        root.mobiscroll = factory(root.angular);
    }
}(this, function(angular) {
    s7gggg.b9q = function() {
        return typeof s7gggg.A9q.J === 'function' ? s7gggg.A9q.J.apply(s7gggg.A9q, arguments) : s7gggg.A9q.J;
    };
    s7gggg.d9q = function() {
        return typeof s7gggg.A9q.J === 'function' ? s7gggg.A9q.J.apply(s7gggg.A9q, arguments) : s7gggg.A9q.J;
    };
    s7gggg.g9q = function() {
        return typeof s7gggg.A9q.J === 'function' ? s7gggg.A9q.J.apply(s7gggg.A9q, arguments) : s7gggg.A9q.J;
    };
    s7gggg.f9q = function() {
        return typeof s7gggg.A9q.J === 'function' ? s7gggg.A9q.J.apply(s7gggg.A9q, arguments) : s7gggg.A9q.J;
    };
    s7gggg.W9q = function() {
        return typeof s7gggg.A9q.J === 'function' ? s7gggg.A9q.J.apply(s7gggg.A9q, arguments) : s7gggg.A9q.J;
    };
    s7gggg.A9q = function(){};

    function s7gggg() {}(typeof window === "object" ? window : global).s7gggg = s7gggg;
    s7gggg.z9q = function(a) {
        while (a) return s7gggg.d9q(a);
    };
    s7gggg.v9q = function(a) {
        while (a) return s7gggg.W9q(a);
    };
    s7gggg.F9q = function(a) {
        if (s7gggg && a) return s7gggg.W9q(a);
    };
    s7gggg.e9q = function(a) {
        while (a) return s7gggg.d9q(a);
    };
    s7gggg.Q9q = function(a) {
        for (; s7gggg;) return s7gggg.W9q(a);
    };
    s7gggg.R9q = function(a) {
        if (s7gggg && a) return s7gggg.f9q(a);
    };
    var mobiscroll = function(J2K) {
        function t2K(d8K) {
            return typeof d8K === "function";
        }

        function B4K(f8K) {
            return (typeof f8K === 'undefined' ? 'undefined' : S0K(f8K)) === "object";
        }

        function J6K(W8K) {
            return typeof W8K.length == 'number';
        }

        function z6K(b8K) {
            return b8K.replace(/-+(.)?/g, function(R8K, g8K) {
                return g8K ? g8K.toUpperCase() : '';
            });
        }

        function Y1K(F8K, e8K, v8K) {
            for (var Q8K in e8K) {
                if (v8K && (W2K.isPlainObject(e8K[Q8K]) || W2K.isArray(e8K[Q8K]))) {
                    if (W2K.isPlainObject(e8K[Q8K]) && !W2K.isPlainObject(F8K[Q8K]) || W2K.isArray(e8K[Q8K]) && !W2K.isArray(F8K[Q8K])) {
                        F8K[Q8K] = {};
                    }
                    Y1K(F8K[Q8K], e8K[Q8K], v8K);
                } else if (e8K[Q8K] !== undefined) {
                    F8K[Q8K] = e8K[Q8K];
                }
            }
        }

        function n4K(H8K) {
            return H8K.replace(/::/g, '/').replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2').replace(/([a-z\d])([A-Z])/g, '$1_$2').replace(/_/g, '-').toLowerCase();
        }

        function m1K(l8K, D8K) {
            return typeof D8K == "number" && !E6K[n4K(l8K)] ? D8K + "px" : D8K;
        }

        function B1K() {
            t0K++;
            setTimeout(function() {
                t0K--;
            }, 500);
        }

        function r0K(M4o, j4o, J4o) {
            var C4o = M4o.originalEvent || M4o,
                Z4o = (J4o ? 'page' : 'client') + j4o;
            if (C4o.targetTouches && C4o.targetTouches[0]) {
                return C4o.targetTouches[0][Z4o];
            }
            if (C4o.changedTouches && C4o.changedTouches[0]) {
                return C4o.changedTouches[0][Z4o];
            }
            return M4o[Z4o];
        }

        function l1K(k4o, Q4o, m4o, R4o, P4o, b4o) {
            function e4o(H4o) {
                if (!G4o) {
                    if (R4o) {
                        H4o.preventDefault();
                    }
                    G4o = this;
                    A4o = r0K(H4o, 'X');
                    d4o = r0K(H4o, 'Y');
                    V4o = false;
                    f4o = new Date();
                }
            }

            function F4o(D4o) {
                if (G4o && !V4o && (Math.abs(r0K(D4o, 'X') - A4o) > P4o || Math.abs(r0K(D4o, 'Y') - d4o) > P4o)) {
                    V4o = true;
                }
            }

            function v4o(l4o) {
                if (G4o) {
                    if (b4o && new Date() - f4o < 100 || !V4o) {
                        l4o.preventDefault();
                        m4o.call(G4o, l4o, k4o);
                    }
                    G4o = false;
                    B1K();
                }
            }

            function g4o() {
                G4o = false;
            }
            var A4o, d4o, G4o, V4o, f4o, W4o = Z2K.$,
                Y4o = W4o(Q4o);
            P4o = P4o || 9;
            if (k4o.settings.tap) {
                Y4o.on('touchstart.mbsc', e4o).on('touchcancel.mbsc', g4o).on('touchmove.mbsc', F4o).on('touchend.mbsc', v4o);
            }
            Y4o.on('click.mbsc', function(B4o) {
                B4o.preventDefault();
                m4o.call(this, B4o, k4o);
            });
        }

        function r1K(z4o) {
            if (t0K && !z4o.tap && !(z4o.target.nodeName == 'TEXTAREA' && z4o.type == 'mousedown')) {
                z4o.stopPropagation();
                z4o.preventDefault();
                return false;
            }
        }

        function F1K(z8o, y8o, T8o, B8o, X8o, r8o, a8o) {
            var l8o = new Date(z8o, y8o, T8o, B8o || 0, X8o || 0, r8o || 0, a8o || 0);
            if (l8o.getHours() == 23 && (B8o || 0) === 0) {
                l8o.setHours(l8o.getHours() + 2);
            }
            return l8o;
        }

        function m6K(V7s, m7s) {
            var G7s = {},
                k7s = V7s.parent(),
                Y7s = k7s.find('.mbsc-err-msg'),
                A7s = V7s.attr('data-icon-align') || 'left',
                P7s = V7s.attr('data-icon');
            f0K('<span class="mbsc-input-wrap"></span>').insertAfter(V7s).append(V7s);
            if (Y7s) {
                k7s.find('.mbsc-input-wrap').append(Y7s);
            }
            if (P7s) {
                if (P7s.indexOf('{') !== -1) {
                    G7s = JSON.parse(P7s);
                } else {
                    G7s[A7s] = P7s;
                }
            }
            if (P7s || m7s) {
                f0K.extend(G7s, m7s);
                k7s.addClass((G7s.right ? 'mbsc-ic-right ' : '') + (G7s.left ? ' mbsc-ic-left' : '')).find('.mbsc-input-wrap').append(G7s.left ? '<span class="mbsc-input-ic mbsc-left-ic mbsc-ic mbsc-ic-' + G7s.left + '"></span>' : '').append(G7s.right ? '<span class="mbsc-input-ic mbsc-right-ic mbsc-ic mbsc-ic-' + G7s.right + '"></span>' : '');
            }
        }

        function t1K(e7s, d7s) {
            var g7s = {},
                f7s = d7s[0],
                Q7s = d7s.parent(),
                R7s = d7s.attr('data-password-toggle'),
                W7s = d7s.attr('data-icon-show') || 'eye',
                b7s = d7s.attr('data-icon-hide') || 'eye-blocked';
            if (R7s) {
                g7s.right = f7s.type == 'password' ? W7s : b7s;
            }
            m6K(d7s, g7s);
            if (R7s) {
                l1K(e7s, Q7s.find('.mbsc-right-ic').addClass('mbsc-input-toggle'), function() {
                    if (f7s.type == "text") {
                        f7s.type = "password";
                        f0K(this).addClass('mbsc-ic-' + W7s).removeClass('mbsc-ic-' + b7s);
                    } else {
                        f7s.type = "text";
                        f0K(this).removeClass('mbsc-ic-' + W7s).addClass('mbsc-ic-' + b7s);
                    }
                });
            }
        }

        function K6K(v7s, F7s) {
            if (F7s != 'button' && F7s != 'submit' && F7s != 'segmented') {
                v7s.addClass('mbsc-control-w').find('label').addClass('mbsc-label');
                v7s.contents().filter(function() {
                    return this.nodeType == 3 && this.nodeValue && /\S/.test(this.nodeValue);
                }).each(function() {
                    f0K('<span class="mbsc-label"></span>').insertAfter(this).append(this);
                });
            }
        }

        function Q4K(a0s) {
            var r0s = [Math.round(a0s.r).toString(16), Math.round(a0s.g).toString(16), Math.round(a0s.b).toString(16)];
            A2K.each(r0s, function(t0s, p0s) {
                if (p0s.length == 1) {
                    r0s[t0s] = '0' + p0s;
                }
            });
            return '#' + r0s.join('');
        }

        function e4K(I0s) {
            I0s = parseInt(I0s.indexOf('#') > -1 ? I0s.substring(1) : I0s, 16);
            return {
                r: I0s >> 16,
                g: (I0s & 0x00FF00) >> 8,
                b: I0s & 0x0000FF,
                toString: function E0s() {
                    return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
                }
            };
        }

        function F6K(n4s) {
            var c0s, q4s, N4s, U0s = n4s.h,
                L4s = n4s.s * 255 / 100,
                h4s = n4s.v * 255 / 100;
            if (L4s === 0) {
                c0s = q4s = N4s = h4s;
            } else {
                var o0s = h4s,
                    u0s = (255 - L4s) * h4s / 255,
                    s4s = (o0s - u0s) * (U0s % 60) / 60;
                if (U0s == 360) {
                    U0s = 0;
                }
                if (U0s < 60) {
                    c0s = o0s;
                    N4s = u0s;
                    q4s = u0s + s4s;
                } else if (U0s < 120) {
                    q4s = o0s;
                    N4s = u0s;
                    c0s = o0s - s4s;
                } else if (U0s < 180) {
                    q4s = o0s;
                    c0s = u0s;
                    N4s = u0s + s4s;
                } else if (U0s < 240) {
                    N4s = o0s;
                    c0s = u0s;
                    q4s = o0s - s4s;
                } else if (U0s < 300) {
                    N4s = o0s;
                    q4s = u0s;
                    c0s = u0s + s4s;
                } else if (U0s < 360) {
                    c0s = o0s;
                    q4s = u0s;
                    N4s = o0s - s4s;
                } else {
                    c0s = q4s = N4s = 0;
                }
            }
            return {
                r: c0s,
                g: q4s,
                b: N4s,
                toString: function i4s() {
                    return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
                }
            };
        }

        function Z6K(x4s) {
            var w4s = 0,
                S4s, C4s, Z4s = Math.min(x4s.r, x4s.g, x4s.b),
                K4s = Math.max(x4s.r, x4s.g, x4s.b),
                O4s = K4s - Z4s;
            C4s = K4s;
            S4s = K4s ? 255 * O4s / K4s : 0;
            if (S4s) {
                if (x4s.r == K4s) {
                    w4s = (x4s.g - x4s.b) / O4s;
                } else if (x4s.g == K4s) {
                    w4s = 2 + (x4s.b - x4s.r) / O4s;
                } else {
                    w4s = 4 + (x4s.r - x4s.g) / O4s;
                }
            } else {
                w4s = -1;
            }
            w4s *= 60;
            if (w4s < 0) {
                w4s += 360;
            }
            S4s *= 100 / 255;
            C4s *= 100 / 255;
            return {
                h: w4s,
                s: S4s,
                v: C4s,
                toString: function M4s() {
                    return 'hsv(' + Math.round(this.h) + ',' + Math.round(this.s) + '%,' + Math.round(this.v) + '%)';
                }
            };
        }

        function n6K(A4s) {
            var V4s = A4s.r / 255,
                J4s = A4s.g / 255,
                G4s = A4s.b / 255,
                j4s = Math.max(V4s, J4s, G4s),
                Y4s = Math.min(V4s, J4s, G4s),
                m4s = (j4s + Y4s) / 2,
                k4s, d4s;
            if (j4s == Y4s) {
                k4s = d4s = 0;
            } else {
                var P4s = j4s - Y4s;
                d4s = m4s > 0.5 ? P4s / (2 - j4s - Y4s) : P4s / (j4s + Y4s);
                switch (j4s) {
                    case V4s:
                        k4s = (J4s - G4s) / P4s + (J4s < G4s ? 6 : 0);
                        break;
                    case J4s:
                        k4s = (G4s - V4s) / P4s + 2;
                        break;
                    case G4s:
                        k4s = (V4s - J4s) / P4s + 4;
                        break;
                }
                k4s /= 6;
            }
            return {
                h: Math.round(k4s * 360),
                s: Math.round(d4s * 100),
                l: Math.round(m4s * 100),
                toString: function f4s() {
                    return 'hsl(' + this.h + ',' + this.s + '%,' + this.l + '%)';
                }
            };
        }

        function c1K(D4s) {
            var R4s, Q4s, e4s, H4s, b4s, F4s, W4s = D4s.h,
                v4s = D4s.s,
                g4s = D4s.l;
            if (!isFinite(W4s)) {
                W4s = 0;
            }
            if (!isFinite(v4s)) {
                v4s = 0;
            }
            if (!isFinite(g4s)) {
                g4s = 0;
            }
            W4s /= 60;
            if (W4s < 0) {
                W4s = 6 - -W4s % 6;
            }
            W4s %= 6;
            v4s = Math.max(0, Math.min(1, v4s / 100));
            g4s = Math.max(0, Math.min(1, g4s / 100));
            b4s = (1 - Math.abs(2 * g4s - 1)) * v4s;
            F4s = b4s * (1 - Math.abs(W4s % 2 - 1));
            if (W4s < 1) {
                R4s = b4s;
                Q4s = F4s;
                e4s = 0;
            } else if (W4s < 2) {
                R4s = F4s;
                Q4s = b4s;
                e4s = 0;
            } else if (W4s < 3) {
                R4s = 0;
                Q4s = b4s;
                e4s = F4s;
            } else if (W4s < 4) {
                R4s = 0;
                Q4s = F4s;
                e4s = b4s;
            } else if (W4s < 5) {
                R4s = F4s;
                Q4s = 0;
                e4s = b4s;
            } else {
                R4s = b4s;
                Q4s = 0;
                e4s = F4s;
            }
            H4s = g4s - b4s / 2;
            return {
                r: Math.round((R4s + H4s) * 255),
                g: Math.round((Q4s + H4s) * 255),
                b: Math.round((e4s + H4s) * 255),
                toString: function l4s() {
                    return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
                }
            };
        }

        function w1K(B4s) {
            return n6K(e4K(B4s));
        }

        function q8K(z4s) {
            return Q4K(c1K(z4s));
        }

        function Q1K(y4s) {
            return Q4K(F6K(y4s));
        }

        function B6K(T4s) {
            return Z6K(e4K(T4s));
        }

        function t4K(C7L) {
            if (!c2K.length) {
                C7L.show();
            }
            c2K.push(C7L);
        }

        function U1K(Z7L) {
            var M7L = Z0K.length;
            Z0K.push(Z7L);
            if (!c2K.length) {
                if (M7L) {
                    Z0K[0].hide();
                } else {
                    Z7L.show();
                }
            }
        }

        function M4K(G7L, j7L, J7L, P7L) {
            return H6K({
                display: j7L.display || 'center',
                cssClass: 'mbsc-alert',
                okText: j7L.okText,
                cancelText: j7L.cancelText,
                context: j7L.context,
                theme: j7L.theme,
                closeOnOverlayTap: false,
                onBeforeClose: function V7L() {
                    G7L.shift();
                },
                onBeforeShow: function k7L() {
                    Z2K.activeInstance = null;
                },
                onHide: function Y7L(A7L, m7L) {
                    if (J7L) {
                        J7L(m7L._resolve);
                    }
                    if (j7L.callback) {
                        j7L.callback(m7L._resolve);
                    }
                    if (m7L) {
                        m7L.destroy();
                    }
                    if (c2K.length) {
                        c2K[0].show();
                    } else if (Z0K.length) {
                        Z0K[0].show();
                    }
                }
            }, P7L);
        }

        function E4K(d7L) {
            return (d7L.title ? '<h2>' + d7L.title + '</h2>' : '') + '<p>' + (d7L.message || '') + '</p>';
        }

        function o1K(W7L, b7L, g7L) {
            var f7L = new Y0K(W7L, M4K(c2K, b7L, g7L));
            t4K(f7L);
        }

        function u1K(Q7L, e7L, F7L) {
            var R7L = new Y0K(Q7L, M4K(c2K, e7L, F7L, {
                buttons: ['ok', 'cancel'],
                onSet: function v7L() {
                    R7L._resolve = true;
                }
            }));
            R7L._resolve = false;
            t4K(R7L);
        }

        function X1K(l7L, B7L, z7L) {
            var D7L = void 0;
            var H7L = new Y0K(l7L, M4K(c2K, B7L, z7L, {
                buttons: ['ok', 'cancel'],
                onShow: function y7L() {
                    D7L = H7L._markup.find('input')[0];
                    setTimeout(function() {
                        D7L.focus();
                    }, 300);
                },
                onSet: function T7L() {
                    H7L._resolve = D7L.value;
                }
            }));
            H7L._resolve = '';
            t4K(H7L);
        }

        function A1K(p7L, X7L, t7L, I7L, E7L) {
            var r7L = void 0;
            var a7L = new Y0K(p7L, M4K(Z0K, X7L, t7L, {
                display: 'bottom',
                animate: E7L,
                cssClass: I7L || 'mbsc-snackbar',
                scrollLock: false,
                buttons: [],
                onShow: function u7L(U7L, o7L) {
                    if (X7L.duration !== false) {
                        r7L = setTimeout(function() {
                            if (o7L) {
                                o7L.hide();
                            }
                        }, X7L.duration || 3000);
                    }
                    if (X7L.button) {
                        o7L.tap(p4K('.mbsc-snackbar-btn', U7L.target), function() {
                            o7L.hide();
                            if (X7L.button.action) {
                                X7L.button.action.call(this);
                            }
                        });
                    }
                },
                onClose: function c7L() {
                    clearTimeout(r7L);
                }
            }));
            U1K(a7L);
        }

        function I1K(q3L, N3L, s3L) {
            A1K(q3L, N3L, s3L, 'mbsc-toast', 'fade');
        }

        function q4K(L3L, n3L, i3L) {
            var h3L = void 0;
            if (i6K) {
                h3L = new Promise(function(x3L) {
                    L3L(n3L, i3L, x3L);
                });
            } else {
                L3L(n3L, i3L);
            }
            return h3L;
        }

        function G6K(P3L) {
            var Y3L = P3L[0];
            var V3L = P3L.attr('data-role');
            var k3L = P3L.attr('type') || Y3L.nodeName.toLowerCase();
            if (/(switch|range|segmented|stepper)/.test(V3L)) {
                k3L = V3L;
            }
            return k3L;
        }

        function P6K(A3L) {
            var m3L = Z2K.themes.form[A3L];
            return m3L && m3L.addRipple ? m3L : null;
        }

        function l6K() {
            clearTimeout(L5K);
            L5K = setTimeout(function() {
                O0K('textarea.mbsc-control').each(function() {
                    n5K(this);
                });
            }, 100);
        }

        function n5K(B2L) {
            var z2L = void 0,
                y2L = void 0,
                T2L = void 0,
                X2L = O0K(B2L).attr('rows') || 6;
            if (B2L.offsetHeight) {
                B2L.style.height = '';
                T2L = B2L.scrollHeight - B2L.offsetHeight;
                z2L = B2L.offsetHeight + (T2L > 0 ? T2L : 0);
                y2L = Math.round(z2L / 24);
                if (y2L > X2L) {
                    B2L.scrollTop = z2L;
                    z2L = 24 * X2L + (z2L - y2L * 24);
                    O0K(B2L).addClass('mbsc-textarea-scroll');
                } else {
                    O0K(B2L).removeClass('mbsc-textarea-scroll');
                }
                if (z2L) {
                    B2L.style.height = z2L + 'px';
                }
            }
        }

        function p1K(r2L) {
            var a2L = O0K(r2L);
            if (!a2L.hasClass('mbsc-textarea-scroll')) {
                var p2L = r2L.scrollHeight - r2L.offsetHeight,
                    t2L = r2L.offsetHeight + p2L;
                r2L.scrollTop = 0;
                r2L.style.height = t2L + 'px';
            }
        }

        function I5K(r4B) {
            var y4B = 0,
                T4B = 1,
                X4B = 0;
            while (r4B.length) {
                if (y4B > 3) {
                    T4B = 60 * 60;
                } else if (y4B > 1) {
                    T4B = 60;
                }
                X4B = X4B + r4B.pop() * T4B * (y4B % 2 ? 10 : 1);
                y4B++;
            }
            return X4B;
        }

        function a1K(U9B, c9B) {
            var u9B = document.createElement('script'),
                o9B = 'mbscjsonp' + ++k1K;
            window[o9B] = function(q7q) {
                u9B.parentNode.removeChild(u9B);
                delete window[o9B];
                if (!q7q) {
                    return;
                }
                c9B(q7q);
            };
            u9B.src = U9B + (U9B.indexOf('?') >= 0 ? '&' : '?') + 'callback=' + o9B;
            document.body.appendChild(u9B);
        }

        function E1K(s7q, h7q) {
            var N7q = new XMLHttpRequest();
            N7q.open('GET', s7q, true);
            N7q.onload = function() {
                if (this.status >= 200 && this.status < 400) {
                    h7q(JSON.parse(this.response));
                }
            };
            N7q.onerror = function() {};
            N7q.send();
        }

        function c5K(L7q, n7q, i7q) {
            if (i7q == 'jsonp') {
                a1K(L7q, n7q);
            } else {
                E1K(L7q, n7q);
            }
        }

        function L6K(A8q, g8q) {
            var d8q = k0K(g8q, 'X', true),
                f8q = k0K(g8q, 'Y', true),
                Y8q = A8q.offset(),
                W8q = d8q - Y8q.left,
                b8q = f8q - Y8q.top,
                R8q = Math.max(W8q, A8q[0].offsetWidth - W8q),
                Q8q = Math.max(b8q, A8q[0].offsetHeight - b8q),
                m8q = 2 * Math.sqrt(Math.pow(R8q, 2) + Math.pow(Q8q, 2));
            N4K(V0K);
            V0K = R2K('<span class="mbsc-ripple"></span>').css({
                width: m8q,
                height: m8q,
                top: f8q - Y8q.top - m8q / 2,
                left: d8q - Y8q.left - m8q / 2
            }).appendTo(A8q);
            setTimeout(function() {
                V0K.addClass('mbsc-ripple-scaled mbsc-ripple-visible');
            }, 10);
        }

        function N4K(e8q) {
            setTimeout(function() {
                if (e8q) {
                    e8q.removeClass('mbsc-ripple-visible');
                    setTimeout(function() {
                        e8q.remove();
                    }, 2000);
                }
            }, 100);
        }

        function D1K(D8q, F8q, l8q, B8q) {
            var v8q, H8q;
            D8q.off('.mbsc-ripple').on('touchstart.mbsc-ripple mousedown.mbsc-ripple', F8q, function(z8q) {
                if (M1K(z8q, this)) {
                    v8q = k0K(z8q, 'X');
                    H8q = k0K(z8q, 'Y');
                    u2K = R2K(this);
                    if (!u2K.hasClass(l8q) && !u2K.hasClass(B8q)) {
                        L6K(u2K, z8q);
                    } else {
                        u2K = null;
                    }
                }
            }).on('touchmove.mbsc-ripple mousemove.mbsc-ripple', F8q, function(y8q) {
                if (u2K && Math.abs(k0K(y8q, 'X') - v8q) > 9 || Math.abs(k0K(y8q, 'Y') - H8q) > 9) {
                    N4K(V0K);
                    u2K = null;
                }
            }).on('touchend.mbsc-ripple touchcancel.mbsc-ripple mouseleave.mbsc-ripple mouseup.mbsc-ripple', F8q, function() {
                if (u2K) {
                    setTimeout(function() {
                        N4K(V0K);
                    }, 100);
                    u2K = null;
                }
            });
        }
        s7gggg.y9q = function(a) {
            while (a) return s7gggg.f9q(a);
        };
        J2K = (s7gggg.R9q("56db") ? 'default' : "") in J2K ? J2K[s7gggg.Q9q("7ab8") ? "" : 'default'] : J2K;
        var Z2K = Z2K || {};
        var S0K = typeof Symbol === (s7gggg.e9q("ef93") ? "function" : "") && typeof Symbol.iterator === (s7gggg.F9q("174a") ? "" : "symbol") ? function(N8K) {
            return typeof N8K;
        } : function(s8K) {
            s7gggg.H9q = function(a) {
                while (a) return s7gggg.b9q(a);
            };
            return s8K && typeof Symbol === (s7gggg.v9q("c7fb") ? "function" : "") && s8K.constructor === Symbol && s8K !== Symbol.prototype ? s7gggg.H9q("c439") ? "" : "symbol" : typeof s8K;
        };
        var E2K = function(h8K, L8K) {
            if (!(h8K instanceof L8K)) {
                throw new TypeError("Cannot call a class as a function");
            }
        };
        var S4K = function() {
            function n8K(K8K, w8K) {
                s7gggg.B9q = function(a) {
                    while (a) return s7gggg.b9q(a);
                };
                s7gggg.l9q = function(a) {
                    if (s7gggg && a) return s7gggg.b9q(a);
                };
                s7gggg.D9q = function(a) {
                    while (a) return s7gggg.d9q(a);
                };
                for (var x8K = s7gggg.D9q("52ee") ? 0 : 1; x8K < w8K.length; x8K++) {
                    var i8K = w8K[x8K];
                    i8K.enumerable = i8K.enumerable || (s7gggg.l9q("c45f") ? true : false);
                    i8K.configurable = true;
                    if ((s7gggg.B9q("73d6") ? "value" : "") in i8K) i8K.writable = true;
                    Object.defineProperty(K8K, i8K.key, i8K);
                }
            }
            return function(O8K, S8K, C8K) {
                if (S8K) n8K(O8K.prototype, S8K);
                if (C8K) n8K(O8K, C8K);
                return O8K;
            };
        }();
        var D0K = function Z8K(j8K, P8K, V8K) {
            if (j8K === null) j8K = Function.prototype;
            var M8K = Object.getOwnPropertyDescriptor(j8K, P8K);
            if (M8K === undefined) {
                var J8K = Object.getPrototypeOf(j8K);
                if (J8K === null) {
                    return undefined;
                } else {
                    return Z8K(J8K, P8K, V8K);
                }
            } else if ("value" in M8K) {
                return M8K.value;
            } else {
                var G8K = M8K.get;
                if (G8K === undefined) {
                    return undefined;
                }
                return G8K.call(V8K);
            }
        };
        var N0K = function(Y8K, k8K) {
            if (typeof k8K !== (s7gggg.z9q("5649") ? "" : "function") && k8K !== null) {
                throw new TypeError("Super expression must either be null or a function, not " + typeof k8K);
            }
            Y8K.prototype = Object.create(k8K && k8K.prototype, {
                constructor: {
                    value: Y8K,
                    enumerable: s7gggg.y9q("345e") ? true : false,
                    writable: true,
                    configurable: true
                }
            });
            if (k8K) Object.setPrototypeOf ? Object.setPrototypeOf(Y8K, k8K) : Y8K.__proto__ = k8K;
        };
        var q0K = function(A8K, m8K) {
            if (!A8K) {
                throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            }
            return m8K && (typeof m8K === "object" || typeof m8K === "function") ? m8K : A8K;
        };
        var E6K = {
            'column-count': 1,
            'columns': 1,
            'font-weight': 1,
            'line-height': 1,
            'opacity': 1,
            'z-index': 1,
            'zoom': 1
        };
        var x1K = {
            'readonly': 'readOnly'
        };
        var u4K = [];
        var v0K = Array.prototype.slice;
        var j4K = function() {
            var z8K = function y8K(X8K) {
                var r8K = this,
                    T8K = 0;
                for (T8K = 0; T8K < X8K.length; T8K++) {
                    r8K[T8K] = X8K[T8K];
                }
                r8K.length = X8K.length;
                return B8K(this);
            };
            var B8K = function a8K(p8K, o8K) {
                var E8K = [],
                    t8K = 0;
                if (p8K && !o8K) {
                    if (p8K instanceof z8K) {
                        return p8K;
                    }
                }
                if (t2K(p8K)) {
                    return a8K(document).ready(p8K);
                }
                if (p8K) {
                    if (typeof p8K === 'string') {
                        var U8K, c8K, I8K;
                        p8K = I8K = p8K.trim();
                        if (I8K.indexOf('<') >= 0 && I8K.indexOf('>') >= 0) {
                            var u8K = 'div';
                            if (I8K.indexOf('<li') === 0) {
                                u8K = 'ul';
                            }
                            if (I8K.indexOf('<tr') === 0) {
                                u8K = 'tbody';
                            }
                            if (I8K.indexOf('<td') === 0 || I8K.indexOf('<th') === 0) {
                                u8K = 'tr';
                            }
                            if (I8K.indexOf('<tbody') === 0) {
                                u8K = 'table';
                            }
                            if (I8K.indexOf('<option') === 0) {
                                u8K = 'select';
                            }
                            c8K = document.createElement(u8K);
                            c8K.innerHTML = I8K;
                            for (t8K = 0; t8K < c8K.childNodes.length; t8K++) {
                                E8K.push(c8K.childNodes[t8K]);
                            }
                        } else {
                            if (!o8K && p8K[0] === '#' && !p8K.match(/[ .<>:~]/)) {
                                U8K = [document.getElementById(p8K.split('#')[1])];
                            } else {
                                if (o8K instanceof z8K) {
                                    o8K = o8K[0];
                                }
                                U8K = (o8K || document).querySelectorAll(p8K);
                            }
                            for (t8K = 0; t8K < U8K.length; t8K++) {
                                if (U8K[t8K]) {
                                    E8K.push(U8K[t8K]);
                                }
                            }
                        }
                    } else if (p8K.nodeType || p8K === window || p8K === document) {
                        E8K.push(p8K);
                    } else if (p8K.length > 0 && p8K[0].nodeType) {
                        for (t8K = 0; t8K < p8K.length; t8K++) {
                            E8K.push(p8K[t8K]);
                        }
                    } else if (a8K.isArray(p8K)) {
                        E8K = p8K;
                    }
                }
                return new z8K(E8K);
            };
            z8K.prototype = {
                ready: function q9K(N9K) {
                    if (document.attachEvent ? document.readyState == 'complete' : document.readyState != 'loading') {
                        N9K(B8K);
                    } else {
                        document.addEventListener('DOMContentLoaded', function() {
                            N9K(B8K);
                        }, false);
                    }
                    return this;
                },
                concat: u4K.concat,
                empty: function s9K() {
                    return this.each(function() {
                        this.innerHTML = '';
                    });
                },
                map: function h9K(L9K) {
                    return B8K(B8K.map(this, function(n9K, i9K) {
                        return L9K.call(n9K, i9K, n9K);
                    }));
                },
                slice: function x9K() {
                    return B8K(v0K.apply(this, arguments));
                },
                addClass: function w9K(C9K) {
                    if (typeof C9K === 'undefined') {
                        return this;
                    }
                    var S9K = C9K.split(' ');
                    for (var K9K = 0; K9K < S9K.length; K9K++) {
                        for (var O9K = 0; O9K < this.length; O9K++) {
                            if (typeof this[O9K].classList !== 'undefined' && S9K[K9K] !== '') {
                                this[O9K].classList.add(S9K[K9K]);
                            }
                        }
                    }
                    return this;
                },
                removeClass: function Z9K(G9K) {
                    if (typeof G9K === 'undefined') {
                        return this;
                    }
                    var J9K = G9K.split(' ');
                    for (var M9K = 0; M9K < J9K.length; M9K++) {
                        for (var j9K = 0; j9K < this.length; j9K++) {
                            if (typeof this[j9K].classList !== 'undefined' && J9K[M9K] !== '') {
                                this[j9K].classList.remove(J9K[M9K]);
                            }
                        }
                    }
                    return this;
                },
                hasClass: function P9K(V9K) {
                    return this[0] ? this[0].classList.contains(V9K) : false;
                },
                toggleClass: function k9K(d9K) {
                    var A9K = d9K.split(' ');
                    for (var m9K = 0; m9K < A9K.length; m9K++) {
                        for (var Y9K = 0; Y9K < this.length; Y9K++) {
                            if (typeof this[Y9K].classList !== 'undefined') {
                                this[Y9K].classList.toggle(A9K[m9K]);
                            }
                        }
                    }
                    return this;
                },
                closest: function f9K(g9K, R9K) {
                    var W9K = this[0],
                        b9K = false;
                    if (B4K(g9K)) {
                        b9K = B8K(g9K);
                    }
                    while (W9K && !(b9K ? b9K.indexOf(W9K) >= 0 : B8K.matches(W9K, g9K))) {
                        W9K = W9K !== R9K && W9K.nodeType !== W9K.DOCUMENT_NODE && W9K.parentNode;
                    }
                    return B8K(W9K);
                },
                attr: function Q9K(e9K, D9K) {
                    var H9K;
                    if (arguments.length === 1 && typeof e9K === 'string') {
                        if (this.length) {
                            H9K = this[0].getAttribute(e9K);
                            return H9K || H9K === '' ? H9K : undefined;
                        }
                    } else {
                        for (var F9K = 0; F9K < this.length; F9K++) {
                            if (arguments.length === 2) {
                                this[F9K].setAttribute(e9K, D9K);
                            } else {
                                for (var v9K in e9K) {
                                    this[F9K][v9K] = e9K[v9K];
                                    this[F9K].setAttribute(v9K, e9K[v9K]);
                                }
                            }
                        }
                        return this;
                    }
                },
                removeAttr: function l9K(z9K) {
                    for (var B9K = 0; B9K < this.length; B9K++) {
                        this[B9K].removeAttribute(z9K);
                    }
                    return this;
                },
                prop: function y9K(T9K, r9K) {
                    T9K = x1K[T9K] || T9K;
                    if (arguments.length === 1 && typeof T9K === 'string') {
                        return this[0] ? this[0][T9K] : undefined;
                    } else {
                        for (var X9K = 0; X9K < this.length; X9K++) {
                            this[X9K][T9K] = r9K;
                        }
                        return this;
                    }
                },
                val: function a9K(t9K) {
                    if (typeof t9K === 'undefined') {
                        if (this.length && this[0].multiple) {
                            return B8K.map(this.find('option:checked'), function(I9K) {
                                return I9K.value;
                            });
                        }
                        return this[0] ? this[0].value : undefined;
                    }
                    if (this.length && this[0].multiple) {
                        B8K.each(this[0].options, function() {
                            this.selected = t9K.indexOf(this.value) != -1;
                        });
                    } else {
                        for (var p9K = 0; p9K < this.length; p9K++) {
                            this[p9K].value = t9K;
                        }
                    }
                    return this;
                },
                on: function E9K(L7o, q7o, c9K, N7o) {
                    function s7o(w7o) {
                        var n7o, i7o, x7o = w7o.target;
                        if (B8K(x7o).is(q7o)) {
                            c9K.call(x7o, w7o);
                        } else {
                            i7o = B8K(x7o).parents();
                            for (n7o = 0; n7o < i7o.length; n7o++) {
                                if (B8K(i7o[n7o]).is(q7o)) {
                                    c9K.call(i7o[n7o], w7o);
                                }
                            }
                        }
                    }

                    function h7o(K7o, Z7o, S7o, C7o) {
                        var O7o = Z7o.split('.');
                        if (!K7o.DomNameSpaces) {
                            K7o.DomNameSpaces = [];
                        }
                        K7o.DomNameSpaces.push({
                            namespace: O7o[1],
                            event: O7o[0],
                            listener: S7o,
                            capture: C7o
                        });
                        K7o.addEventListener(O7o[0], S7o, C7o);
                    }
                    var U9K = L7o.split(' '),
                        o9K, u9K;
                    for (o9K = 0; o9K < this.length; o9K++) {
                        if (t2K(q7o) || q7o === false) {
                            if (t2K(q7o)) {
                                N7o = c9K || false;
                                c9K = q7o;
                            }
                            for (u9K = 0; u9K < U9K.length; u9K++) {
                                if (U9K[u9K].indexOf('.') != -1) {
                                    h7o(this[o9K], U9K[u9K], c9K, N7o);
                                } else {
                                    this[o9K].addEventListener(U9K[u9K], c9K, N7o);
                                }
                            }
                        } else {
                            for (u9K = 0; u9K < U9K.length; u9K++) {
                                if (!this[o9K].DomLiveListeners) {
                                    this[o9K].DomLiveListeners = [];
                                }
                                this[o9K].DomLiveListeners.push({
                                    listener: c9K,
                                    liveListener: s7o
                                });
                                if (U9K[u9K].indexOf('.') != -1) {
                                    h7o(this[o9K], U9K[u9K], s7o, N7o);
                                } else {
                                    this[o9K].addEventListener(U9K[u9K], s7o, N7o);
                                }
                            }
                        }
                    }
                    return this;
                },
                off: function M7o(d7o, Y7o, V7o, m7o) {
                    function A7o(e7o) {
                        var f7o, W7o, b7o, g7o = e7o.split('.'),
                            R7o = g7o[0],
                            Q7o = g7o[1];
                        for (f7o = 0; f7o < J7o.length; ++f7o) {
                            if (J7o[f7o].DomNameSpaces) {
                                for (W7o = 0; W7o < J7o[f7o].DomNameSpaces.length; ++W7o) {
                                    b7o = J7o[f7o].DomNameSpaces[W7o];
                                    if (b7o.namespace == Q7o && (b7o.event == R7o || !R7o)) {
                                        J7o[f7o].removeEventListener(b7o.event, b7o.listener, b7o.capture);
                                        b7o.removed = true;
                                    }
                                }
                                for (W7o = J7o[f7o].DomNameSpaces.length - 1; W7o >= 0; --W7o) {
                                    if (J7o[f7o].DomNameSpaces[W7o].removed) {
                                        J7o[f7o].DomNameSpaces.splice(W7o, 1);
                                    }
                                }
                            }
                        }
                    }
                    var P7o, G7o, j7o, k7o, J7o = this;
                    P7o = d7o.split(' ');
                    for (G7o = 0; G7o < P7o.length; G7o++) {
                        for (j7o = 0; j7o < this.length; j7o++) {
                            if (t2K(Y7o) || Y7o === false) {
                                if (t2K(Y7o)) {
                                    m7o = V7o || false;
                                    V7o = Y7o;
                                }
                                if (P7o[G7o].indexOf('.') === 0) {
                                    A7o(P7o[G7o].substr(1), V7o, m7o);
                                } else {
                                    this[j7o].removeEventListener(P7o[G7o], V7o, m7o);
                                }
                            } else {
                                if (this[j7o].DomLiveListeners) {
                                    for (k7o = 0; k7o < this[j7o].DomLiveListeners.length; k7o++) {
                                        if (this[j7o].DomLiveListeners[k7o].listener === V7o) {
                                            this[j7o].removeEventListener(P7o[G7o], this[j7o].DomLiveListeners[k7o].liveListener, m7o);
                                        }
                                    }
                                }
                                if (this[j7o].DomNameSpaces && this[j7o].DomNameSpaces.length && P7o[G7o]) {
                                    A7o(P7o[G7o]);
                                }
                            }
                        }
                    }
                    return this;
                },
                trigger: function F7o(z7o, B7o) {
                    var D7o = z7o.split(' ');
                    for (var v7o = 0; v7o < D7o.length; v7o++) {
                        for (var l7o = 0; l7o < this.length; l7o++) {
                            var H7o;
                            try {
                                H7o = new CustomEvent(D7o[v7o], {
                                    detail: B7o,
                                    bubbles: true,
                                    cancelable: true
                                });
                            } catch (y7o) {
                                H7o = document.createEvent('Event');
                                H7o.initEvent(D7o[v7o], true, true);
                                H7o.detail = B7o;
                            }
                            this[l7o].dispatchEvent(H7o);
                        }
                    }
                    return this;
                },
                width: function T7o(X7o) {
                    if (X7o !== undefined) {
                        return this.css('width', X7o);
                    }
                    if (this[0] === window) {
                        return window.innerWidth;
                    } else if (this[0] === document) {
                        return document.documentElement.scrollWidth;
                    } else {
                        return this.length > 0 ? parseFloat(this.css('width')) : null;
                    }
                },
                height: function r7o(t7o) {
                    if (t7o !== undefined) {
                        return this.css('height', t7o);
                    }
                    if (this[0] === window) {
                        return window.innerHeight;
                    } else if (this[0] === document) {
                        var p7o = document.body,
                            a7o = document.documentElement;
                        return Math.max(p7o.scrollHeight, p7o.offsetHeight, a7o.clientHeight, a7o.scrollHeight, a7o.offsetHeight);
                    } else {
                        return this.length > 0 ? parseFloat(this.css('height')) : null;
                    }
                },
                innerWidth: function I7o() {
                    var u7o = this;
                    if (this.length > 0) {
                        if (this[0].innerWidth) {
                            return this[0].innerWidth;
                        } else {
                            var E7o = this[0].offsetWidth,
                                o7o = ['left', 'right'];
                            o7o.forEach(function(U7o) {
                                E7o -= parseInt(u7o.css(z6K('border-' + U7o + '-width')) || 0, 10);
                            });
                            return E7o;
                        }
                    }
                },
                innerHeight: function c7o() {
                    var N3o = this;
                    if (this.length > 0) {
                        if (this[0].innerHeight) {
                            return this[0].innerHeight;
                        } else {
                            var q3o = this[0].offsetHeight,
                                s3o = ['top', 'bottom'];
                            s3o.forEach(function(h3o) {
                                q3o -= parseInt(N3o.css(z6K('border-' + h3o + '-width')) || 0, 10);
                            });
                            return q3o;
                        }
                    }
                },
                offset: function L3o() {
                    if (this.length > 0) {
                        var x3o = this[0],
                            n3o = x3o.getBoundingClientRect(),
                            i3o = document.documentElement;
                        return {
                            top: n3o.top + window.pageYOffset - i3o.clientTop,
                            left: n3o.left + window.pageXOffset - i3o.clientLeft
                        };
                    }
                },
                hide: function w3o() {
                    for (var K3o = 0; K3o < this.length; K3o++) {
                        this[K3o].style.display = 'none';
                    }
                    return this;
                },
                show: function O3o() {
                    for (var S3o = 0; S3o < this.length; S3o++) {
                        if (this[S3o].style.display == "none") {
                            this[S3o].style.display = '';
                        }
                        if (getComputedStyle(this[S3o], '').getPropertyValue("display") == "none") {
                            this[S3o].style.display = 'block';
                        }
                    }
                    return this;
                },
                clone: function C3o() {
                    return this.map(function() {
                        return this.cloneNode(true);
                    });
                },
                styles: function Z3o() {
                    return this[0] ? window.getComputedStyle(this[0], null) : undefined;
                },
                css: function M3o(j3o, k3o) {
                    var G3o, J3o, P3o = this[0],
                        V3o = '';
                    if (arguments.length < 2) {
                        if (!P3o) {
                            return;
                        }
                        if (typeof j3o === 'string') {
                            return P3o.style[j3o] || getComputedStyle(P3o, '').getPropertyValue(j3o);
                        }
                    }
                    if (typeof j3o === 'string') {
                        if (!k3o && k3o !== 0) {
                            this.each(function() {
                                this.style.removeProperty(n4K(j3o));
                            });
                        } else {
                            V3o = n4K(j3o) + ":" + m1K(j3o, k3o);
                        }
                    } else {
                        for (J3o in j3o) {
                            if (!j3o[J3o] && j3o[J3o] !== 0) {
                                for (G3o = 0; G3o < this.length; G3o++) {
                                    this[G3o].style.removeProperty(n4K(J3o));
                                }
                            } else {
                                V3o += n4K(J3o) + ':' + m1K(J3o, j3o[J3o]) + ';';
                            }
                        }
                    }
                    return this.each(function() {
                        this.style.cssText += ';' + V3o;
                    });
                },
                each: function Y3o(A3o) {
                    for (var m3o = 0; m3o < this.length; m3o++) {
                        if (A3o.apply(this[m3o], [m3o, this[m3o]]) === false) {
                            break;
                        }
                    }
                    return this;
                },
                filter: function d3o(b3o) {
                    var W3o = [];
                    for (var f3o = 0; f3o < this.length; f3o++) {
                        if (t2K(b3o)) {
                            if (b3o.call(this[f3o], f3o, this[f3o])) {
                                W3o.push(this[f3o]);
                            }
                        } else if (B8K.matches(this[f3o], b3o)) {
                            W3o.push(this[f3o]);
                        }
                    }
                    return new z8K(W3o);
                },
                html: function g3o(Q3o) {
                    if (typeof Q3o === 'undefined') {
                        return this[0] ? this[0].innerHTML : undefined;
                    } else {
                        this.empty();
                        for (var R3o = 0; R3o < this.length; R3o++) {
                            this[R3o].innerHTML = Q3o;
                        }
                        return this;
                    }
                },
                text: function e3o(v3o) {
                    if (typeof v3o === 'undefined') {
                        return this[0] ? this[0].textContent.trim() : null;
                    } else {
                        for (var F3o = 0; F3o < this.length; F3o++) {
                            this[F3o].textContent = v3o;
                        }
                        return this;
                    }
                },
                is: function H3o(D3o) {
                    return this.length > 0 && B8K.matches(this[0], D3o);
                },
                not: function l3o(B3o) {
                    var y3o = [];
                    if (t2K(B3o) && B3o.call !== undefined) {
                        this.each(function(T3o) {
                            if (!B3o.call(this, T3o)) {
                                y3o.push(this);
                            }
                        });
                    } else {
                        var z3o = typeof B3o == 'string' ? this.filter(B3o) : J6K(B3o) && t2K(B3o.item) ? v0K.call(B3o) : B8K(B3o);
                        if (B4K(z3o)) {
                            z3o = B8K.map(z3o, function(X3o) {
                                return X3o;
                            });
                        }
                        this.each(function(a3o, r3o) {
                            if (z3o.indexOf(r3o) < 0) {
                                y3o.push(r3o);
                            }
                        });
                    }
                    return B8K(y3o);
                },
                indexOf: function p3o(I3o) {
                    for (var t3o = 0; t3o < this.length; t3o++) {
                        if (this[t3o] === I3o) {
                            return t3o;
                        }
                    }
                },
                index: function E3o(u3o) {
                    return u3o ? this.indexOf(B8K(u3o)[0]) : this.parent().children().indexOf(this[0]);
                },
                get: function o3o(U3o) {
                    return U3o === undefined ? v0K.call(this) : this[U3o >= 0 ? U3o : U3o + this.length];
                },
                eq: function c3o(q2o) {
                    if (typeof q2o === 'undefined') {
                        return this;
                    }
                    var N2o = this.length,
                        s2o;
                    if (q2o > N2o - 1) {
                        return new z8K([]);
                    }
                    if (q2o < 0) {
                        s2o = N2o + q2o;
                        return s2o < 0 ? new z8K([]) : new z8K([this[s2o]]);
                    }
                    return new z8K([this[q2o]]);
                },
                append: function h2o(L2o) {
                    var n2o, i2o;
                    for (n2o = 0; n2o < this.length; n2o++) {
                        if (typeof L2o === 'string') {
                            var x2o = document.createElement('div');
                            x2o.innerHTML = L2o;
                            while (x2o.firstChild) {
                                this[n2o].appendChild(x2o.firstChild);
                            }
                        } else if (L2o instanceof z8K) {
                            for (i2o = 0; i2o < L2o.length; i2o++) {
                                this[n2o].appendChild(L2o[i2o]);
                            }
                        } else {
                            this[n2o].appendChild(L2o);
                        }
                    }
                    return this;
                },
                appendTo: function w2o(K2o) {
                    B8K(K2o).append(this);
                    return this;
                },
                prepend: function O2o(Z2o) {
                    var S2o, C2o;
                    for (S2o = 0; S2o < this.length; S2o++) {
                        if (typeof Z2o === 'string') {
                            var M2o = document.createElement('div');
                            M2o.innerHTML = Z2o;
                            for (C2o = M2o.childNodes.length - 1; C2o >= 0; C2o--) {
                                this[S2o].insertBefore(M2o.childNodes[C2o], this[S2o].childNodes[0]);
                            }
                        } else if (Z2o instanceof z8K) {
                            for (C2o = 0; C2o < Z2o.length; C2o++) {
                                this[S2o].insertBefore(Z2o[C2o], this[S2o].childNodes[0]);
                            }
                        } else {
                            this[S2o].insertBefore(Z2o, this[S2o].childNodes[0]);
                        }
                    }
                    return this;
                },
                prependTo: function j2o(J2o) {
                    B8K(J2o).prepend(this);
                    return this;
                },
                insertBefore: function G2o(Y2o) {
                    var P2o = B8K(Y2o);
                    for (var V2o = 0; V2o < this.length; V2o++) {
                        if (P2o.length === 1) {
                            P2o[0].parentNode.insertBefore(this[V2o], P2o[0]);
                        } else if (P2o.length > 1) {
                            for (var k2o = 0; k2o < P2o.length; k2o++) {
                                P2o[k2o].parentNode.insertBefore(this[V2o].cloneNode(true), P2o[k2o]);
                            }
                        }
                    }
                    return this;
                },
                insertAfter: function m2o(W2o) {
                    var A2o = B8K(W2o);
                    for (var d2o = 0; d2o < this.length; d2o++) {
                        if (A2o.length === 1) {
                            A2o[0].parentNode.insertBefore(this[d2o], A2o[0].nextSibling);
                        } else if (A2o.length > 1) {
                            for (var f2o = 0; f2o < A2o.length; f2o++) {
                                A2o[f2o].parentNode.insertBefore(this[d2o].cloneNode(true), A2o[f2o].nextSibling);
                            }
                        }
                    }
                    return this;
                },
                next: function b2o(g2o) {
                    if (this.length > 0) {
                        if (g2o) {
                            if (this[0].nextElementSibling && B8K(this[0].nextElementSibling).is(g2o)) {
                                return new z8K([this[0].nextElementSibling]);
                            } else {
                                return new z8K([]);
                            }
                        } else {
                            if (this[0].nextElementSibling) {
                                return new z8K([this[0].nextElementSibling]);
                            } else {
                                return new z8K([]);
                            }
                        }
                    } else {
                        return new z8K([]);
                    }
                },
                nextAll: function R2o(v2o) {
                    var F2o = [],
                        Q2o = this[0];
                    if (!Q2o) {
                        return new z8K([]);
                    }
                    while (Q2o.nextElementSibling) {
                        var e2o = Q2o.nextElementSibling;
                        if (v2o) {
                            if (B8K(e2o).is(v2o)) {
                                F2o.push(e2o);
                            }
                        } else {
                            F2o.push(e2o);
                        }
                        Q2o = e2o;
                    }
                    return new z8K(F2o);
                },
                prev: function H2o(D2o) {
                    if (this.length > 0) {
                        if (D2o) {
                            if (this[0].previousElementSibling && B8K(this[0].previousElementSibling).is(D2o)) {
                                return new z8K([this[0].previousElementSibling]);
                            } else {
                                return new z8K([]);
                            }
                        } else {
                            if (this[0].previousElementSibling) {
                                return new z8K([this[0].previousElementSibling]);
                            } else {
                                return new z8K([]);
                            }
                        }
                    } else {
                        return new z8K([]);
                    }
                },
                prevAll: function l2o(T2o) {
                    var y2o = [];
                    var B2o = this[0];
                    if (!B2o) {
                        return new z8K([]);
                    }
                    while (B2o.previousElementSibling) {
                        var z2o = B2o.previousElementSibling;
                        if (T2o) {
                            if (B8K(z2o).is(T2o)) {
                                y2o.push(z2o);
                            }
                        } else {
                            y2o.push(z2o);
                        }
                        B2o = z2o;
                    }
                    return new z8K(y2o);
                },
                parent: function X2o(p2o) {
                    var a2o = [];
                    for (var r2o = 0; r2o < this.length; r2o++) {
                        if (this[r2o].parentNode !== null) {
                            if (p2o) {
                                if (B8K(this[r2o].parentNode).is(p2o)) {
                                    a2o.push(this[r2o].parentNode);
                                }
                            } else {
                                a2o.push(this[r2o].parentNode);
                            }
                        }
                    }
                    return B8K(B8K.unique(a2o));
                },
                parents: function t2o(o2o) {
                    var E2o = [];
                    for (var u2o = 0; u2o < this.length; u2o++) {
                        var I2o = this[u2o].parentNode;
                        while (I2o) {
                            if (o2o) {
                                if (B8K(I2o).is(o2o)) {
                                    E2o.push(I2o);
                                }
                            } else {
                                E2o.push(I2o);
                            }
                            I2o = I2o.parentNode;
                        }
                    }
                    return B8K(B8K.unique(E2o));
                },
                find: function U2o(h0o) {
                    var N0o = [];
                    for (var c2o = 0; c2o < this.length; c2o++) {
                        var s0o = this[c2o].querySelectorAll(h0o);
                        for (var q0o = 0; q0o < s0o.length; q0o++) {
                            N0o.push(s0o[q0o]);
                        }
                    }
                    return new z8K(N0o);
                },
                children: function L0o(K0o) {
                    var x0o = [];
                    for (var w0o = 0; w0o < this.length; w0o++) {
                        var i0o = this[w0o].childNodes;
                        for (var n0o = 0; n0o < i0o.length; n0o++) {
                            if (!K0o) {
                                if (i0o[n0o].nodeType === 1) {
                                    x0o.push(i0o[n0o]);
                                }
                            } else {
                                if (i0o[n0o].nodeType === 1 && B8K(i0o[n0o]).is(K0o)) {
                                    x0o.push(i0o[n0o]);
                                }
                            }
                        }
                    }
                    return new z8K(B8K.unique(x0o));
                },
                remove: function O0o() {
                    for (var S0o = 0; S0o < this.length; S0o++) {
                        if (this[S0o].parentNode) {
                            this[S0o].parentNode.removeChild(this[S0o]);
                        }
                    }
                    return this;
                },
                add: function C0o() {
                    var Z0o = this;
                    var M0o, j0o;
                    for (M0o = 0; M0o < arguments.length; M0o++) {
                        var J0o = B8K(arguments[M0o]);
                        for (j0o = 0; j0o < J0o.length; j0o++) {
                            Z0o[Z0o.length] = J0o[j0o];
                            Z0o.length++;
                        }
                    }
                    return Z0o;
                },
                before: function G0o(P0o) {
                    B8K(P0o).insertBefore(this);
                    return this;
                },
                after: function V0o(k0o) {
                    B8K(k0o).insertAfter(this);
                    return this;
                },
                scrollTop: function Y0o(m0o) {
                    if (!this.length) {
                        return;
                    }
                    var A0o = 'scrollTop' in this[0];
                    if (m0o === undefined) {
                        return A0o ? this[0].scrollTop : this[0].pageYOffset;
                    }
                    return this.each(A0o ? function() {
                        this.scrollTop = m0o;
                    } : function() {
                        this.scrollTo(this.scrollX, m0o);
                    });
                },
                scrollLeft: function d0o(f0o) {
                    if (!this.length) {
                        return;
                    }
                    var W0o = 'scrollLeft' in this[0];
                    if (f0o === undefined) {
                        return W0o ? this[0].scrollLeft : this[0].pageXOffset;
                    }
                    return this.each(W0o ? function() {
                        this.scrollLeft = f0o;
                    } : function() {
                        this.scrollTo(f0o, this.scrollY);
                    });
                },
                contents: function b0o() {
                    return this.map(function(R0o, g0o) {
                        return v0K.call(g0o.childNodes);
                    });
                },
                nextUntil: function Q0o(v0o) {
                    var e0o = this,
                        F0o = [];
                    while (e0o.length && !e0o.filter(v0o).length) {
                        F0o.push(e0o[0]);
                        e0o = e0o.next();
                    }
                    return B8K(F0o);
                },
                prevUntil: function H0o(B0o) {
                    var D0o = this,
                        l0o = [];
                    while (D0o.length && !B8K(D0o).filter(B0o).length) {
                        l0o.push(D0o[0]);
                        D0o = D0o.prev();
                    }
                    return B8K(l0o);
                },
                detach: function z0o() {
                    return this.remove();
                }
            };
            B8K.fn = z8K.prototype;
            return B8K;
        }();
        var W2K = j4K;
        Z2K.$ = j4K;
        W2K.inArray = function(y0o, T0o, X0o) {
            return u4K.indexOf.call(T0o, y0o, X0o);
        };
        W2K.extend = function(r0o) {
            var p0o, a0o = v0K.call(arguments, 1);
            if (typeof r0o == 'boolean') {
                p0o = r0o;
                r0o = a0o.shift();
            }
            r0o = r0o || {};
            a0o.forEach(function(t0o) {
                Y1K(r0o, t0o, p0o);
            });
            return r0o;
        };
        W2K.isFunction = t2K;
        W2K.isArray = function(I0o) {
            return Object.prototype.toString.apply(I0o) === '[object Array]';
        };
        W2K.isPlainObject = function(E0o) {
            return B4K(E0o) && E0o !== null && E0o !== E0o.window && Object.getPrototypeOf(E0o) == Object.prototype;
        };
        W2K.each = function(u0o, c0o) {
            var o0o, U0o;
            if (!B4K(u0o) || !c0o) {
                return;
            }
            if (W2K.isArray(u0o) || u0o instanceof j4K) {
                for (o0o = 0; o0o < u0o.length; o0o++) {
                    if (c0o.call(u0o[o0o], o0o, u0o[o0o]) === false) {
                        break;
                    }
                }
            } else {
                for (U0o in u0o) {
                    if (u0o.hasOwnProperty(U0o) && U0o !== 'length') {
                        if (c0o.call(u0o[U0o], U0o, u0o[U0o]) === false) {
                            break;
                        }
                    }
                }
            }
            return this;
        };
        W2K.unique = function(s4o) {
            var N4o = [];
            for (var q4o = 0; q4o < s4o.length; q4o++) {
                if (N4o.indexOf(s4o[q4o]) === -1) {
                    N4o.push(s4o[q4o]);
                }
            }
            return N4o;
        };
        W2K.map = function(n4o, w4o) {
            var h4o, L4o = [],
                i4o, x4o;
            if (J6K(n4o)) {
                for (i4o = 0; i4o < n4o.length; i4o++) {
                    h4o = w4o(n4o[i4o], i4o);
                    if (h4o !== null) {
                        L4o.push(h4o);
                    }
                }
            } else {
                for (x4o in n4o) {
                    h4o = w4o(n4o[x4o], x4o);
                    if (h4o !== null) {
                        L4o.push(h4o);
                    }
                }
            }
            return L4o.length > 0 ? W2K.fn.concat.apply([], L4o) : L4o;
        };
        W2K.matches = function(K4o, O4o) {
            if (!O4o || !K4o || K4o.nodeType !== 1) {
                return false;
            }
            var S4o = K4o.matchesSelector || K4o.webkitMatchesSelector || K4o.mozMatchesSelector || K4o.msMatchesSelector;
            return S4o.call(K4o, O4o);
        };
        var L4K;
        var F0K;
        var s4K = [];
        var T1K = navigator.userAgent;
        var U0K = T1K.match(/Android|iPhone|iPad|iPod|Windows Phone|Windows|MSIE/i);
        if (/Android/i.test(U0K)) {
            L4K = 'android';
            F0K = navigator.userAgent.match(/Android\s+([\d\.]+)/i);
            if (F0K) {
                s4K = F0K[0].replace('Android ', '').split('.');
            }
        } else if (/iPhone|iPad|iPod/i.test(U0K)) {
            L4K = 'ios';
            F0K = navigator.userAgent.match(/OS\s+([\d\_]+)/i);
            if (F0K) {
                s4K = F0K[0].replace(/_/g, '.').replace('OS ', '').split('.');
            }
        } else if (/Windows Phone/i.test(U0K)) {
            L4K = 'wp';
        } else if (/Windows|MSIE/i.test(U0K)) {
            L4K = 'windows';
        }
        var w0K = {
            name: L4K,
            majorVersion: s4K[0],
            minorVersion: s4K[1]
        };
        var t0K = 0;
        ['mouseover', 'mousedown', 'mouseup', 'click'].forEach(function(y4o) {
            document.addEventListener(y4o, r1K, true);
        });
        if (w0K.name == 'android' && w0K.majorVersion < 5) {
            document.addEventListener('change', function(T4o) {
                if (t0K && T4o.target.type == 'checkbox' && !T4o.target.mbscChange) {
                    T4o.stopPropagation();
                    T4o.preventDefault();
                }
                delete T4o.target.mbscChange;
            }, true);
        }
		
		
		(function() {
 


        function s5o() {
            var n5o = ['Webkit', 'Moz', 'O', 'ms'],
                i5o;
            for (i5o in n5o) {
                if (N5o([n5o[i5o] + 'Transform'])) {
                    return '-' + n5o[i5o].toLowerCase() + '-';
                }
            }
            return '';
        }

        function N5o(h5o) {
            var L5o;
            for (L5o in h5o) {
                if (u4o[h5o[L5o]] !== undefined) {
                    return true;
                }
            }
            return false;
        }
        var X4o, t4o = function x5o() {},
            r4o = Z2K.$,
            E4o = +new Date(),
            p4o = {},
            a4o = r4o.extend,
            u4o = document.createElement('modernizr').style,
            o4o = s5o(),
            U4o = o4o.replace(/^\-/, '').replace(/\-$/, '').replace('moz', 'Moz'),
            c4o = u4o.animation !== undefined ? 'animationend' : 'webkitAnimationEnd';
        X4o = a4o(Z2K, {
            $: r4o,
            version: '3.2.0',
            util: {
                prefix: o4o,
                jsPrefix: U4o,
                animEnd: c4o,
                preventClick: B1K,
                testTouch: function w5o(O5o, K5o) {
                    if (O5o.type == 'touchstart') {
                        r4o(K5o).attr('data-touch', '1');
                    } else if (r4o(K5o).attr('data-touch')) {
                        r4o(K5o).removeAttr('data-touch');
                        return false;
                    }
                    return true;
                },
                objectToArray: function S5o(Z5o) {
                    var C5o = [],
                        M5o;
                    for (M5o in Z5o) {
                        C5o.push(Z5o[M5o]);
                    }
                    return C5o;
                },
                arrayToObject: function j5o(G5o) {
                    var P5o = {},
                        J5o;
                    if (G5o) {
                        for (J5o = 0; J5o < G5o.length; J5o++) {
                            P5o[G5o[J5o]] = G5o[J5o];
                        }
                    }
                    return P5o;
                },
                isNumeric: function V5o(k5o) {
                    return k5o - parseFloat(k5o) >= 0;
                },
                isString: function Y5o(m5o) {
                    return typeof m5o === 'string';
                },
                getCoord: r0K,
                getPosition: function A5o(b5o, g5o) {
                    var f5o = getComputedStyle(b5o[0]),
                        d5o, W5o;
                    r4o.each(['t', 'webkitT', 'MozT', 'OT', 'msT'], function(Q5o, R5o) {
                        if (f5o[R5o + 'ransform'] !== undefined) {
                            d5o = f5o[R5o + 'ransform'];
                            return false;
                        }
                    });
                    d5o = d5o.split(')')[0].split(', ');
                    W5o = g5o ? d5o[13] || d5o[5] : d5o[12] || d5o[4];
                    return W5o;
                },
                constrain: function e5o(F5o, v5o, H5o) {
                    return Math.max(v5o, Math.min(F5o, H5o));
                },
                vibrate: function D5o(l5o) {
                    if ('vibrate' in navigator) {
                        navigator.vibrate(l5o || 50);
                    }
                },
                throttle: function B5o(T5o, z5o) {
                    var y5o, X5o;
                    z5o = z5o || 100;
                    return function() {
                        var a5o = this,
                            r5o = +new Date(),
                            p5o = arguments;
                        if (y5o && r5o < y5o + z5o) {
                            clearTimeout(X5o);
                            X5o = setTimeout(function() {
                                y5o = r5o;
                                T5o.apply(a5o, p5o);
                            }, z5o);
                        } else {
                            y5o = r5o;
                            T5o.apply(a5o, p5o);
                        }
                    };
                }
            },
            autoTheme: "mobiscroll",
            presets: {
                scroller: {},
                numpad: {},
                listview: {},
                menustrip: {}
            },
            themes: {
                form: {},
                page: {},
                frame: {},
                scroller: {},
                listview: {},
                menustrip: {},
                progress: {}
            },
            platform: w0K,
            i18n: {},
            instances: p4o,
            classes: {},
            components: {},
            settings: {},
            setDefaults: function t5o(I5o) {
                a4o(this.settings, I5o);
            },
            customTheme: function E5o(q6o, c5o) {
                var u5o, U5o = Z2K.themes,
                    o5o = ['frame', 'scroller', 'listview', 'menustrip', 'form', 'progress'];
                for (u5o = 0; u5o < o5o.length; u5o++) {
                    U5o[o5o[u5o]][q6o] = Z2K.$.extend({}, U5o[o5o[u5o]][c5o], {
                        baseTheme: c5o
                    });
                }
            }
        });
        X4o.presetShort = X4o.presetShort || function() {};
        X4o.classes.Base = function(L6o, h6o) {
            function S6o() {
                r4o(L6o).addClass('mbsc-comp');
                if (!L6o.id) {
                    L6o.id = 'mobiscroll' + ++E4o;
                } else if (p4o[L6o.id]) {
                    p4o[L6o.id].destroy();
                }
                p4o[L6o.id] = s6o;
                s6o.__ready = true;
            }
            var O6o, i6o, N6o, K6o, n6o, x6o, w6o, s6o = this;
            s6o.settings = {};
            s6o._init = t4o;
            s6o._destroy = t4o;
            s6o._processSettings = t4o;
            s6o.init = function(a6o) {
                var I6o;
                for (I6o in s6o.settings) {
                    delete s6o.settings[I6o];
                }
                N6o = s6o.settings;
                a4o(h6o, a6o);
                if (s6o._hasDef) {
                    w6o = X4o.settings;
                }
                a4o(N6o, s6o._defaults, w6o, h6o);
                if (s6o._hasTheme) {
                    n6o = N6o.theme;
                    if (n6o == 'auto' || !n6o) {
                        n6o = X4o.autoTheme;
                    }
                    if (n6o == 'default') {
                        n6o = 'mobiscroll';
                    }
                    h6o.theme = n6o;
                    K6o = X4o.themes[s6o._class] ? X4o.themes[s6o._class][n6o] : {};
                }
                if (s6o._hasLang) {
                    O6o = X4o.i18n[N6o.lang];
                }
                if (s6o._hasTheme) {
                    x6o('onThemeLoad', {
                        lang: O6o,
                        settings: h6o
                    });
                }
                a4o(N6o, K6o, O6o, w6o, h6o);
                s6o._processSettings();
                var t6o = {
                    form: true,
                    page: true,
                    scrollview: true,
                    progress: true,
                    progressbase: true,
                    switch: true,
                    slider: true,
                    sliderbase: true,
                    stepper: true
                };
                if (t6o[s6o._class]) {
                    s6o._init(a6o);
                    x6o('onInit');
                } else {
                    var X6o = {
                        className: s6o._class,
                        buttons: s6o.buttons,
                        platform: X4o.platform,
                        userAgent: navigator.userAgent,
                        defSortHandle: r4o(L6o).find(N6o.listSelector || 'ul,ol').length ? 'left' : 'right',
                        settings: {
                            activeClass: N6o.activeClass,
                            ampmText: N6o.ampmText,
                            amText: N6o.amText,
                            animateIcons: N6o.animateIcons,
                            backText: N6o.backText,
                            baseTheme: N6o.baseTheme,
                            buttons: N6o.buttons,
                            btnClass: N6o.btnClass,
                            btnWidth: N6o.btnWidth,
                            closeIcon: N6o.closeIcon,
                            context: N6o.context == 'body' ? 'body' : '',
                            controls: N6o.controls,
                            cssClass: N6o.cssClass,
                            dateDisplay: N6o.dateDisplay,
                            dateFormat: N6o.dateFormat,
                            dateWheels: N6o.dateWheels,
                            dayNames: N6o.dayNames,
                            dayNamesShort: N6o.dayNamesShort,
                            daySuffix: N6o.daySuffix,
                            display: N6o.display,
                            dayText: N6o.dayText,
                            endYear: N6o.endYear,
                            fixedHeader: N6o.fixedHeader,
                            handleClass: N6o.handleClass,
                            handleMarkup: N6o.handleMarkup,
                            hideText: N6o.hideText,
                            hourText: N6o.hourText,
                            itemNode: N6o.itemNode,
                            itemWidth: N6o.itemWidth,
                            lang: N6o.lang,
                            lapIcon: N6o.lapIcon,
                            lapText: N6o.lapText,
                            layout: N6o.layout,
                            leftArrowClass: N6o.leftArrowClass,
                            max: N6o.max,
                            min: N6o.min,
                            minuteText: N6o.minuteText,
                            monthNames: N6o.monthNames,
                            monthNamesShort: N6o.monthNamesShort,
                            monthSuffix: N6o.monthSuffix,
                            monthText: N6o.monthText,
                            nowIcon: N6o.nowIcon,
                            nowText: N6o.nowText,
                            pmText: N6o.pmText,
                            preset: N6o.preset,
                            resetIcon: N6o.resetIcon,
                            resetText: N6o.resetText,
                            rightArrowClass: N6o.rightArrowClass,
                            rtl: N6o.rtl,
                            secText: N6o.secText,
                            select: N6o.select,
                            snap: N6o.snap,
                            sort: N6o.sort,
                            sortable: N6o.sortable,
                            sortHandle: N6o.sortHandle,
                            startIcon: N6o.startIcon,
                            startText: N6o.startText,
                            startYear: N6o.startYear,
                            stepHour: N6o.stepHour,
                            stepMinute: N6o.stepMinute,
                            stepSecond: N6o.stepSecond,
                            steps: N6o.steps,
                            stopIcon: N6o.stopIcon,
                            stopText: N6o.stopText,
                            striped: N6o.striped,
                            theme: N6o.theme,
                            timeFormat: N6o.timeFormat,
                            timeWheels: N6o.timeWheels,
                            todayText: N6o.todayText,
                            type: N6o.type,
                            variant: N6o.variant,
                            wrapperClass: N6o.wrapperClass,
                            yearSuffix: N6o.yearSuffix,
                            yearText: N6o.yearText
                        }
                    };
                    var z6o, B6o, y6o = [],
                        T6o = {},
                        p6o = ['refresh', 'redraw', 'navigate', 'showMonthView', 'changeTab', 'addValue', 'removeValue', 'getDate', 'setDate', 'addEvent', 'removeEvent', 'getEvents', 'setEvents', 'setActiveDate', 'start', 'stop', 'reset', 'lap', 'resetlap', 'getTime', 'setTime', 'getEllapsedTime', 'setEllapsedTime'],
                        E6o = {
                            jsonp: 1,
                            getInst: 1,
                            init: 1,
                            destroy: 1
                        },
                        r6o = function u6o(o6o) {
                            s6o[o6o] = function() {
                                y6o.push({
                                    func: o6o,
                                    args: arguments
                                });
                            };
                        };
                    for (B6o in s6o) {
                        if (typeof s6o[B6o] === 'function' && !E6o[B6o]) {
                            T6o[B6o] = s6o[B6o];
                            r6o(B6o);
                        }
                    }
                    for (z6o = 0; z6o < p6o.length; z6o++) {
                        r6o(p6o[z6o]);
                    }
                    if (N6o.preset == 'timer' && !h6o.buttons) {
                        X6o.settings.buttons = ['toggle', 'resetlap'];
                        if (N6o.display !== 'inline') {
                            X6o.settings.buttons.push('hide');
                        }
                    }
                    if (N6o.preset == 'eventcalendar' && !h6o.buttons && N6o.display != 'inline') {
                        X6o.settings.buttons = ['close'];
                    }
                   
                      
                        for (B6o in T6o) {
                            s6o[B6o] = T6o[B6o];
                        }
                  
                        if (s6o._hasPreset) {
                            i6o = X4o.presets[s6o._class][N6o.preset];
                            if (i6o) {
                                i6o = i6o.call(L6o, s6o);
                                a4o(N6o, i6o, h6o);
                            }
                        }
                        s6o._init(a6o);
                        x6o('onInit');
                        for (z6o = 0; z6o < y6o.length; z6o++) {
                            s6o[y6o[z6o].func].apply(s6o, y6o[z6o].args);
                        }
                        y6o = null;
                        T6o = null;
                }
            };
            s6o.destroy = function() {
                if (s6o) {
                    s6o._destroy();
                    x6o('onDestroy');
                    delete p4o[L6o.id];
                    s6o = null;
                }
            };
            s6o.tap = function(c6o, q1o, N1o, s1o, h1o) {
                l1K(s6o, c6o, q1o, N1o, s1o, h1o);
            };
            s6o.trigger = function(i1o, K1o) {
                var x1o, L1o, n1o, w1o = [w6o, K6o, i6o, h6o];
                for (L1o = 0; L1o < 4; L1o++) {
                    n1o = w1o[L1o];
                    if (n1o && n1o[i1o]) {
                        x1o = n1o[i1o].call(L6o, K1o || {}, s6o);
                    }
                }
                return x1o;
            };
            s6o.option = function(O1o, C1o) {
                var S1o = {};
                if ((typeof O1o === 'undefined' ? 'undefined' : S0K(O1o)) === 'object') {
                    S1o = O1o;
                } else {
                    S1o[O1o] = C1o;
                }
                s6o.init(S1o);
            };
            s6o.getInst = function() {
                return s6o;
            };

            h6o = h6o || {};
            x6o = s6o.trigger;
            if (!s6o.__ready) {
                S6o();
            }
        };
      
}())
		
        Z2K.ng = {};
        var V4K = Z2K.$;
        var z0K = Z2K.instances;
        Z2K.ng = {
            getDDO: function b1o(F1o, v1o, H1o, g1o, R1o, Q1o, e1o, D1o) {
                R1o = R1o || Z2K.ng.read;
                g1o = g1o || Z2K.ng.render;
                Q1o = Q1o || Z2K.ng.parse;
                e1o = e1o || Z2K.ng.format;
                return {
                    restrict: 'A',
                    require: '?ngModel',
                    priority: J2K.version && J2K.version.major == 1 && J2K.version.minor == 2 ? 1 : undefined,
                    link: function l1o(z1o, T1o, B1o, X1o) {
                        var y1o = V4K(T1o[0]),
                            r1o;
                        Z2K.ng.addWatch(F1o, z1o, X1o, y1o, B1o, v1o, g1o, R1o, Q1o, e1o);
                        r1o = new Z2K.classes[H1o.component || 'Scroller'](T1o[0], J2K.extend(Z2K.ng.getOpt(z1o, B1o, v1o, X1o, D1o, y1o), H1o || {}));
                        if (B1o.mobiscrollInstance) {
                            F1o(B1o.mobiscrollInstance).assign(z1o, r1o);
                        }
                    }
                };
            },
            getOpt: function a1o(t1o, I1o, o1o, U1o, E1o, c1o) {
                var p1o = t1o.$eval(I1o.mobiscrollOptions || '{}'),
                    u1o = E1o ? c1o.closest('[mbsc-form-opt]') : null;
                if (E1o) {
                    p1o = J2K.extend({}, Z2K.ng.formOptions[u1o.attr('id')] || {}, p1o);
                }
                if (U1o) {
                    J2K.extend(p1o, t1o.$eval(I1o[o1o] || '{}'));
                }
                return p1o;
            },
            read: function q8o(x8o, h8o, L8o, w8o, n8o, i8o, K8o) {
                var N8o, s8o = z0K[L8o.attr('id')];
                if (s8o) {
                    N8o = K8o(L8o, s8o.getVal());
                    if (i8o) {
                        i8o.$setViewValue(N8o);
                    } else if (n8o[h8o]) {
                        x8o(n8o[h8o]).assign(w8o, N8o);
                    }
                }
            },
            render: function O8o(Z8o, C8o) {
                var S8o = z0K[Z8o.attr('id')];
                if (S8o && !J2K.equals(S8o.getVal(), C8o)) {
                    S8o.setVal(C8o, true, false);
                }
            },
            parse: function M8o(G8o) {
                var j8o, J8o = z0K[G8o.attr('id')];
                if (J8o) {
                    j8o = J8o.getVal();
                }
                return V4K.isArray(j8o) && !j8o.length ? null : j8o;
            },
            format: function P8o(k8o, V8o) {
                return V4K.isArray(V8o) && !V8o.length ? null : V8o;
            },
            addWatch: function Y8o(b8o, A8o, m8o, d8o, Q8o, g8o, R8o, W8o, e8o, f8o) {
                R8o = R8o || Z2K.ng.render;
                W8o = W8o || Z2K.ng.read;
                e8o = e8o || Z2K.ng.parse;
                f8o = f8o || Z2K.ng.format;
                if (m8o) {
                    m8o.$render = function() {};
                    m8o.$parsers.unshift(function(F8o) {
                        return e8o(d8o, F8o);
                    });
                    m8o.$formatters.push(function(v8o) {
                        return f8o(d8o, v8o);
                    });
                }
                A8o.$watch(function() {
                    return m8o ? m8o.$modelValue : b8o(Q8o[g8o])(A8o);
                }, function(H8o) {
                    R8o(d8o, H8o);
                }, true);
                A8o.$on('$destroy', function() {
                    var D8o = z0K[d8o[0].id];
                    if (D8o) {
                        D8o.destroy();
                    }
                });
                d8o.on('change', function() {
                    if (!A8o.$$phase) {
                        A8o.$apply(function() {
                            W8o(b8o, g8o, d8o, A8o, Q8o, m8o, f8o);
                        });
                    } else {
                        W8o(b8o, g8o, d8o, A8o, Q8o, m8o, f8o);
                    }
                });
            },
            formOptions: {}
        };
        var h6K = Z2K.$;
        var Q2K = {
            defaults: {
                shortYearCutoff: '+10',
                monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
                monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
                dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
                dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
                dayNamesMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
                amText: 'am',
                pmText: 'pm',
                getYear: function p8o(t8o) {
                    return t8o.getFullYear();
                },
                getMonth: function I8o(E8o) {
                    return E8o.getMonth();
                },
                getDay: function u8o(o8o) {
                    return o8o.getDate();
                },
                getDate: F1K,
                getMaxDayOfMonth: function U8o(c8o, q9o) {
                    return 32 - new Date(c8o, q9o, 32, 12).getDate();
                },
                getWeekNumber: function N9o(s9o) {
                    s9o = new Date(s9o);
                    s9o.setHours(0, 0, 0);
                    s9o.setDate(s9o.getDate() + 4 - (s9o.getDay() || 7));
                    var h9o = new Date(s9o.getFullYear(), 0, 1);
                    return Math.ceil(((s9o - h9o) / 86400000 + 1) / 7);
                }
            },
            adjustedDate: F1K,
            formatDate: function L9o(O9o, i9o, J9o) {
                if (!i9o) {
                    return null;
                }
                var x9o = h6K.extend({}, Q2K.defaults, J9o),
                    S9o = function G9o(V9o) {
                        var P9o = 0;
                        while (w9o + 1 < O9o.length && O9o.charAt(w9o + 1) == V9o) {
                            P9o++;
                            w9o++;
                        }
                        return P9o;
                    },
                    K9o = function k9o(m9o, A9o, d9o) {
                        var Y9o = '' + A9o;
                        if (S9o(m9o)) {
                            while (Y9o.length < d9o) {
                                Y9o = '0' + Y9o;
                            }
                        }
                        return Y9o;
                    },
                    j9o = function f9o(b9o, W9o, g9o, R9o) {
                        return S9o(b9o) ? R9o[W9o] : g9o[W9o];
                    },
                    w9o, Z9o, n9o = '',
                    M9o = false;
                for (w9o = 0; w9o < O9o.length; w9o++) {
                    if (M9o) {
                        if (O9o.charAt(w9o) == "'" && !S9o("'")) {
                            M9o = false;
                        } else {
                            n9o += O9o.charAt(w9o);
                        }
                    } else {
                        switch (O9o.charAt(w9o)) {
                            case 'd':
                                n9o += K9o('d', x9o.getDay(i9o), 2);
                                break;
                            case 'D':
                                n9o += j9o('D', i9o.getDay(), x9o.dayNamesShort, x9o.dayNames);
                                break;
                            case 'o':
                                n9o += K9o('o', (i9o.getTime() - new Date(i9o.getFullYear(), 0, 0).getTime()) / 86400000, 3);
                                break;
                            case 'm':
                                n9o += K9o('m', x9o.getMonth(i9o) + 1, 2);
                                break;
                            case 'M':
                                n9o += j9o('M', x9o.getMonth(i9o), x9o.monthNamesShort, x9o.monthNames);
                                break;
                            case 'y':
                                Z9o = x9o.getYear(i9o);
                                n9o += S9o('y') ? Z9o : (Z9o % 100 < 10 ? '0' : '') + Z9o % 100;
                                break;
                            case 'h':
                                var C9o = i9o.getHours();
                                n9o += K9o('h', C9o > 12 ? C9o - 12 : C9o === 0 ? 12 : C9o, 2);
                                break;
                            case 'H':
                                n9o += K9o('H', i9o.getHours(), 2);
                                break;
                            case 'i':
                                n9o += K9o('i', i9o.getMinutes(), 2);
                                break;
                            case 's':
                                n9o += K9o('s', i9o.getSeconds(), 2);
                                break;
                            case 'a':
                                n9o += i9o.getHours() > 11 ? x9o.pmText : x9o.amText;
                                break;
                            case 'A':
                                n9o += i9o.getHours() > 11 ? x9o.pmText.toUpperCase() : x9o.amText.toUpperCase();
                                break;
                            case "'":
                                if (S9o("'")) {
                                    n9o += "'";
                                } else {
                                    M9o = true;
                                }
                                break;
                            default:
                                n9o += O9o.charAt(w9o);
                        }
                    }
                }
                return n9o;
            },
            parseDate: function Q9o(T9o, v9o, N7l) {
                var e9o = h6K.extend({}, Q2K.defaults, N7l),
                    z9o = e9o.defaultValue && e9o.defaultValue.getTime ? e9o.defaultValue : new Date();
                if (!T9o || !v9o) {
                    return z9o;
                }
                if (v9o.getTime) {
                    return v9o;
                }
                v9o = (typeof v9o === 'undefined' ? 'undefined' : S0K(v9o)) == 'object' ? v9o.toString() : v9o + '';
                var I9o = e9o.shortYearCutoff,
                    l9o = e9o.getYear(z9o),
                    B9o = e9o.getMonth(z9o) + 1,
                    y9o = e9o.getDay(z9o),
                    o9o = -1,
                    F9o = z9o.getHours(),
                    q7l = z9o.getMinutes(),
                    U9o = 0,
                    X9o = -1,
                    u9o = false,
                    a9o = function s7l(L7l) {
                        var h7l = D9o + 1 < T9o.length && T9o.charAt(D9o + 1) == L7l;
                        if (h7l) {
                            D9o++;
                        }
                        return h7l;
                    },
                    H9o = function n7l(i7l) {
                        a9o(i7l);
                        var w7l = i7l == '@' ? 14 : i7l == '!' ? 20 : i7l == 'y' ? 4 : i7l == 'o' ? 3 : 2,
                            K7l = new RegExp('^\\d{1,' + w7l + '}'),
                            x7l = v9o.substr(r9o).match(K7l);
                        if (!x7l) {
                            return 0;
                        }
                        r9o += x7l[0].length;
                        return parseInt(x7l[0], 10);
                    },
                    t9o = function O7l(Z7l, M7l, j7l) {
                        var C7l = a9o(Z7l) ? j7l : M7l,
                            S7l;
                        for (S7l = 0; S7l < C7l.length; S7l++) {
                            if (v9o.substr(r9o, C7l[S7l].length).toLowerCase() == C7l[S7l].toLowerCase()) {
                                r9o += C7l[S7l].length;
                                return S7l + 1;
                            }
                        }
                        return 0;
                    },
                    E9o = function J7l() {
                        r9o++;
                    },
                    r9o = 0,
                    D9o;
                for (D9o = 0; D9o < T9o.length; D9o++) {
                    if (u9o) {
                        if (T9o.charAt(D9o) == "'" && !a9o("'")) {
                            u9o = false;
                        } else {
                            E9o();
                        }
                    } else {
                        switch (T9o.charAt(D9o)) {
                            case 'd':
                                y9o = H9o('d');
                                break;
                            case 'D':
                                t9o('D', e9o.dayNamesShort, e9o.dayNames);
                                break;
                            case 'o':
                                o9o = H9o('o');
                                break;
                            case 'm':
                                B9o = H9o('m');
                                break;
                            case 'M':
                                B9o = t9o('M', e9o.monthNamesShort, e9o.monthNames);
                                break;
                            case 'y':
                                l9o = H9o('y');
                                break;
                            case 'H':
                                F9o = H9o('H');
                                break;
                            case 'h':
                                F9o = H9o('h');
                                break;
                            case 'i':
                                q7l = H9o('i');
                                break;
                            case 's':
                                U9o = H9o('s');
                                break;
                            case 'a':
                                X9o = t9o('a', [e9o.amText, e9o.pmText], [e9o.amText, e9o.pmText]) - 1;
                                break;
                            case 'A':
                                X9o = t9o('A', [e9o.amText, e9o.pmText], [e9o.amText, e9o.pmText]) - 1;
                                break;
                            case "'":
                                if (a9o("'")) {
                                    E9o();
                                } else {
                                    u9o = true;
                                }
                                break;
                            default:
                                E9o();
                        }
                    }
                }
                if (l9o < 100) {
                    l9o += new Date().getFullYear() - new Date().getFullYear() % 100 + (l9o <= (typeof I9o != 'string' ? I9o : new Date().getFullYear() % 100 + parseInt(I9o, 10)) ? 0 : -100);
                }
                if (o9o > -1) {
                    B9o = 1;
                    y9o = o9o;
                    do {
                        var c9o = 32 - new Date(l9o, B9o - 1, 32, 12).getDate();
                        if (y9o <= c9o) {
                            break;
                        }
                        B9o++;
                        y9o -= c9o;
                    } while (true);
                }
                F9o = X9o == -1 ? F9o : X9o && F9o < 12 ? F9o + 12 : !X9o && F9o == 12 ? 0 : F9o;
                var p9o = e9o.getDate(l9o, B9o - 1, y9o, F9o, q7l, U9o);
                if (e9o.getYear(p9o) != l9o || e9o.getMonth(p9o) + 1 != B9o || e9o.getDay(p9o) != y9o) {
                    return z9o;
                }
                return p9o;
            }
        };
        Z2K.util.datetime = Q2K;
        var F4K;
        var H4K;
        var P2K = Z2K.$;
        var T4K = Z2K.platform;
        var b0K = Z2K.util;
        var s6K = Z2K.classes;
        var J4K = Z2K.themes;
        var N6K = b0K.constrain;
        var g4K = b0K.isString;
        var i4K = b0K.getCoord;
        var h4K = b0K.animEnd;
        var W1K = /(iphone|ipod)/i.test(navigator.userAgent) && T4K.majorVersion >= 7;
        var f1K = T4K.name == 'ios' && T4K.majorVersion == 8;
        var b2K = function G7l() {};
        var q6K = function P7l(V7l) {
            V7l.preventDefault();
        };
        var p2K = function k7l(w3l, i3l, k3l) {
            function V3l(Y3l) {
                if (v7l) {
                    v7l.removeClass('mbsc-fr-btn-a');
                }
                v7l = P2K(this);
                if (!v7l.hasClass('mbsc-fr-btn-d') && !v7l.hasClass('mbsc-fr-btn-nhl')) {
                    v7l.addClass('mbsc-fr-btn-a');
                }
                if (Y3l.type === 'mousedown') {
                    P2K(document).on('mouseup', y7l);
                } else if (Y3l.type === 'pointerdown') {
                    P2K(document).on('pointerup', y7l);
                }
            }

            function y7l(m3l) {
                if (v7l) {
                    v7l.removeClass('mbsc-fr-btn-a');
                    v7l = null;
                }
                if (m3l.type === 'mouseup') {
                    P2K(document).off('mouseup', y7l);
                } else if (m3l.type === 'pointerup') {
                    P2K(document).off('pointerup', y7l);
                }
            }

            function Z3l(A3l) {
                if (A3l.keyCode == 13) {
                    Y7l.select();
                } else if (A3l.keyCode == 27) {
                    Y7l.cancel();
                }
            }

            function M3l(d3l) {
                if (!d3l) {
                    n3l.focus();
                }
                Y7l.ariaMessage(m7l.ariaMessage);
            }

            function j3l(b3l) {
                var W3l = F4K,
                    f3l = m7l.focusOnClose;
                Y7l._markupRemove();
                A7l.remove();
                if (W7l) {
                    b7l.mbscModals--;
                    if (m7l.scrollLock) {
                        b7l.mbscLock--;
                    }
                    if (!b7l.mbscLock) {
                        r7l.removeClass('mbsc-fr-lock');
                    }
                    if (!b7l.mbscModals) {
                        r7l.removeClass('mbsc-fr-lock-ios mbsc-fr-lock-ctx');
                        if (X7l) {
                            F7l.css({
                                top: '',
                                left: ''
                            });
                            R7l.scrollLeft(u7l);
                            R7l.scrollTop(q3l);
                        }
                        if (!b3l) {
                            if (!W3l) {
                                W3l = d7l;
                            }
                            setTimeout(function() {
                                if (f3l === undefined || f3l === true) {
                                    H4K = true;
                                    W3l[0].focus();
                                } else if (f3l) {
                                    P2K(f3l)[0].focus();
                                }
                            }, 200);
                        }
                    }
                }
                F4K = null;
                Y7l._isVisible = false;
                N3l = false;
                g7l('onHide');
            }

            function J3l(g3l) {
                clearTimeout(h3l[g3l.type]);
                h3l[g3l.type] = setTimeout(function() {
                    var Q3l, R3l = g3l.type == 'scroll';
                    if (R3l && !I7l) {
                        return;
                    }
                    Y7l.position(!R3l);
                    if (g3l.type == 'orientationchange') {
                        Q7l.style.display = 'none';
                        Q3l = Q7l.offsetHeight;
                        Q7l.style.display = '';
                    }
                }, 200);
            }

            function G3l(e3l) {
                if (e3l.target.nodeType && !Q7l.contains(e3l.target)) {
                    Q7l.focus();
                }
            }

            function p7l(F3l, v3l) {
                if (F3l) {
                    F3l();
                }
                if (Y7l.show() !== false) {
                    F4K = v3l;
                    setTimeout(function() {
                        H4K = false;
                    }, 300);
                }
            }

            function S3l() {
                Y7l._fillValue();
                g7l('onSet', {
                    valueText: Y7l._value
                });
            }

            function C3l() {
                g7l('onCancel', {
                    valueText: Y7l._value
                });
            }

            function P3l() {
                Y7l.setVal(null, true);
            }
            var E7l, F7l, K3l, r7l, A7l, t7l, x3l, z7l, R7l, L3l, B7l, v7l, b7l, f7l, H7l, W7l, N3l, D7l, l7l, e7l, T7l, X7l, n3l, Q7l, a7l, o7l, m7l, u7l, I7l, q3l, O3l, g7l, U7l, c7l, Y7l = this,
                d7l = P2K(w3l),
                s3l = [],
                h3l = {};
            s6K.Base.call(this, w3l, i3l, true);
            Y7l.position = function(h2l) {
                var a3l, N2l, I3l, E3l, T3l, o3l, U3l, c3l, q2l, u3l, s2l, H3l, l3l, p3l, B3l, y3l, t3l = {},
                    z3l = 0,
                    D3l = 0,
                    X3l = 0,
                    r3l = 0;
                if (o7l || !N3l) {
                    return;
                }
                Y7l._position(A7l);
                H3l = D7l.offsetHeight;
                l3l = D7l.offsetWidth;
                if (U7l === l3l && c7l === H3l && h2l) {
                    return;
                }
                if (Y7l._isFullScreen || /top|bottom/.test(m7l.display)) {
                    z7l.width(l3l);
                } else {
                    L3l.width('');
                }
                if (g7l('onPosition', {
                        target: D7l,
                        windowWidth: l3l,
                        windowHeight: H3l
                    }) === false || !W7l) {
                    return;
                }
                P2K('.mbsc-comp', A7l).each(function() {
                    var L2l = Z2K.instances[this.id];
                    if (L2l && L2l !== Y7l && L2l.position) {
                        L2l.position();
                    }
                });
                if (!Y7l._isFullScreen && /center|bubble/.test(m7l.display)) {
                    P2K('.mbsc-w-p', A7l).each(function() {
                        p3l = this.getBoundingClientRect().width;
                        r3l += p3l;
                        X3l = p3l > X3l ? p3l : X3l;
                    });
                    L3l.css({
                        'width': Y7l._isLiquid ? Math.min(m7l.maxPopupWidth, l3l - 16) : Math.ceil(r3l > l3l ? X3l : r3l),
                        'white-space': r3l > l3l ? '' : 'nowrap'
                    });
                }
                l7l = Q7l.offsetWidth;
                e7l = Q7l.offsetHeight;
                I7l = e7l <= H3l && l7l <= l3l;
                if (T7l) {
                    z3l = R7l.scrollLeft();
                    D3l = R7l.scrollTop();
                }
                if (m7l.display == 'center') {
                    y3l = Math.max(0, z3l + (l3l - l7l) / 2);
                    B3l = Math.max(0, D3l + (H3l - e7l) / 2);
                } else if (m7l.display == 'bubble') {
                    a3l = m7l.anchor === undefined ? d7l : P2K(m7l.anchor);
                    U3l = P2K('.mbsc-fr-arr-i', A7l)[0];
                    E3l = a3l.offset();
                    T3l = E3l.top + (H7l ? D3l - F7l.offset().top : 0);
                    o3l = E3l.left + (H7l ? z3l - F7l.offset().left : 0);
                    N2l = a3l[0].offsetWidth;
                    I3l = a3l[0].offsetHeight;
                    c3l = U3l.offsetWidth;
                    q2l = U3l.offsetHeight;
                    y3l = N6K(o3l - (l7l - N2l) / 2, z3l + 8, z3l + l3l - l7l - 8);
                    B3l = T3l - e7l - q2l / 2;
                    if (B3l < D3l || T3l > D3l + H3l) {
                        z7l.removeClass('mbsc-fr-bubble-top').addClass('mbsc-fr-bubble-bottom');
                        B3l = T3l + I3l + q2l / 2;
                    } else {
                        z7l.removeClass('mbsc-fr-bubble-bottom').addClass('mbsc-fr-bubble-top');
                    }
                    P2K('.mbsc-fr-arr', A7l).css({
                        left: N6K(o3l + N2l / 2 - (y3l + (l7l - c3l) / 2), 0, c3l)
                    });
                    I7l = B3l > D3l && y3l > z3l && B3l + e7l <= D3l + H3l && y3l + l7l <= z3l + l3l;
                } else {
                    y3l = z3l;
                    B3l = m7l.display == 'top' ? D3l : Math.max(0, D3l + H3l - e7l);
                }
                if (T7l) {
                    u3l = Math.max(B3l + e7l, H7l ? b7l.scrollHeight : P2K(document).height());
                    s2l = Math.max(y3l + l7l, H7l ? b7l.scrollWidth : P2K(document).width());
                    x3l.css({
                        width: s2l,
                        height: u3l
                    });
                    if (m7l.scroll && m7l.display == 'bubble' && (B3l + e7l + 8 > D3l + H3l || T3l > D3l + H3l || T3l + I3l < D3l)) {
                        o7l = true;
                        setTimeout(function() {
                            o7l = false;
                        }, 300);
                        R7l.scrollTop(Math.min(T3l, B3l + e7l - H3l + 8, u3l - H3l));
                    }
                }
                t3l.top = Math.floor(B3l);
                t3l.left = Math.floor(y3l);
                z7l.css(t3l);
                U7l = l3l;
                c7l = H3l;
            };
            Y7l.attachShow = function(K2l, x2l) {
                var i2l, n2l = P2K(K2l),
                    w2l = n2l.prop('readonly');
                if (m7l.display !== 'inline') {
                    if ((m7l.showOnFocus || m7l.showOnTap) && n2l.is('input,select')) {
                        n2l.prop('readonly', true).on('mousedown.mbsc', function(O2l) {
                            O2l.preventDefault();
                        }).on('focus.mbsc', function() {
                            if (Y7l._isVisible) {
                                this.blur();
                            }
                        });
                        i2l = P2K('label[for="' + n2l.attr('id') + '"]');
                        if (!i2l.length) {
                            i2l = n2l.closest('label');
                        }
                    }
                    if (n2l.is('select')) {
                        return;
                    }
                    if (m7l.showOnFocus) {
                        n2l.on('focus.mbsc', function() {
                            if (!H4K) {
                                p7l(x2l, n2l);
                            }
                        });
                    }
                    if (m7l.showOnTap) {
                        n2l.on('keydown.mbsc', function(S2l) {
                            if (S2l.keyCode == 32 || S2l.keyCode == 13) {
                                S2l.preventDefault();
                                S2l.stopPropagation();
                                p7l(x2l, n2l);
                            }
                        });
                        Y7l.tap(n2l, function() {
                            p7l(x2l, n2l);
                        });
                        if (i2l && i2l.length) {
                            Y7l.tap(i2l, function() {
                                p7l(x2l, n2l);
                            });
                        }
                    }
                    s3l.push({
                        readOnly: w2l,
                        el: n2l,
                        lbl: i2l
                    });
                }
            };
            Y7l.select = function() {
                if (W7l) {
                    Y7l.hide(false, 'set', false, S3l);
                } else {
                    S3l();
                }
            };
            Y7l.cancel = function() {
                if (W7l) {
                    Y7l.hide(false, 'cancel', false, C3l);
                } else {
                    C3l();
                }
            };
            Y7l.clear = function() {
                Y7l._clearValue();
                g7l('onClear');
                if (W7l && Y7l._isVisible && !Y7l.live) {
                    Y7l.hide(false, 'clear', false, P3l);
                } else {
                    P3l();
                }
            };
            Y7l.enable = function() {
                m7l.disabled = false;
                if (Y7l._isInput) {
                    d7l.prop('disabled', false);
                }
            };
            Y7l.disable = function() {
                m7l.disabled = true;
                if (Y7l._isInput) {
                    d7l.prop('disabled', true);
                }
            };
            Y7l.show = function(V2l, j2l) {
                function J2l() {
                    A7l.off(h4K, J2l).removeClass('mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-' + f7l).find('.mbsc-fr-popup').removeClass('mbsc-anim-' + f7l);
                    M3l(j2l);
                }
                var k2l, Z2l;
                if (m7l.disabled || Y7l._isVisible) {
                    return;
                }
                Y7l._readValue();
                if (g7l('onBeforeShow') === false) {
                    return false;
                }
                f7l = m7l.animate;
                B7l = m7l.buttons || [];
                T7l = H7l || m7l.display == 'bubble';
                X7l = W1K && !T7l && m7l.scrollLock;
                k2l = B7l.length > 0;
                if (f7l !== false) {
                    if (m7l.display == 'top') {
                        f7l = f7l || 'slidedown';
                    } else if (m7l.display == 'bottom') {
                        f7l = f7l || 'slideup';
                    } else if (m7l.display == 'center' || m7l.display == 'bubble') {
                        f7l = f7l || 'pop';
                    }
                }
                if (W7l) {
                    q3l = Math.max(0, R7l.scrollTop());
                    u7l = Math.max(0, R7l.scrollLeft());
                    U7l = 0;
                    c7l = 0;
                    if (X7l && !r7l.hasClass('mbsc-fr-lock-ios')) {
                        F7l.css({
                            top: -q3l + 'px',
                            left: -u7l + 'px'
                        });
                    }
                    r7l.addClass((m7l.scrollLock ? 'mbsc-fr-lock' : '') + (X7l ? ' mbsc-fr-lock-ios' : '') + (H7l ? ' mbsc-fr-lock-ctx' : ''));
                    if (P2K(document.activeElement).is('input,textarea')) {
                        document.activeElement.blur();
                    }
                    if (Z2K.activeInstance) {
                        Z2K.activeInstance.hide();
                    }
                    Z2K.activeInstance = Y7l;
                    b7l.mbscModals = b7l.mbscModals || 0;
                    b7l.mbscLock = b7l.mbscLock || 0;
                    b7l.mbscModals++;
                    if (m7l.scrollLock) {
                        b7l.mbscLock++;
                    }
                }
                Z2l = '<div lang="' + m7l.lang + '" class="mbsc-fr mbsc-no-touch mbsc-' + m7l.theme + (m7l.baseTheme ? ' mbsc-' + m7l.baseTheme : '') + ' mbsc-fr-' + m7l.display + ' ' + (m7l.cssClass || '') + ' ' + (m7l.compClass || '') + (Y7l._isLiquid ? ' mbsc-fr-liq' : '') +  (X7l ? ' mbsc-platform-ios' : '') + (k2l ? k2l.length >= 3 ? ' mbsc-fr-btn-block ' : '' : ' mbsc-fr-nobtn') + '">' + (W7l ? '<div class="mbsc-fr-persp"><div class="mbsc-fr-overlay"></div><div role="dialog" tabindex="-1" class="mbsc-fr-scroll">' : '') + '<div class="mbsc-fr-popup' + (m7l.rtl ? ' mbsc-rtl' : ' mbsc-ltr') + (m7l.headerText ? ' mbsc-fr-has-hdr' : '') + '">' + (m7l.display === 'bubble' ? '<div class="mbsc-fr-arr-w"><div class="mbsc-fr-arr-i"><div class="mbsc-fr-arr"></div></div></div>' : '') + '<div class="mbsc-fr-w"><div aria-live="assertive" class="mbsc-fr-aria mbsc-fr-hdn"></div>' + (m7l.headerText ? '<div class="mbsc-fr-hdr">' + (g4K(m7l.headerText) ? m7l.headerText : '') + '</div>' : '') + '<div class="mbsc-fr-c">';
                Z2l += Y7l._generateContent();
				Z2l += '</div>';
				if (k2l) {
					Z2l += '<div class="mbsc-fr-btn-cont">';
					P2K.each(B7l, function(b, a) {
						a = g4K(a) ? Y7l.buttons[a] : a;
						if (a.handler === 'set') {
							a.parentClass = 'mbsc-fr-btn-s';
						}
						if (a.handler === 'cancel') {
							a.parentClass = 'mbsc-fr-btn-c';
						}
						Z2l += '<div' + (m7l.btnWidth ? ' style="width:' + 100 / k2l.length + '%"' : '') + ' class="mbsc-fr-btn-w ' + (a.parentClass || '') + '"><div tabindex="0" role="button" class="mbsc-fr-btn' + b + ' mbsc-fr-btn-e ' + (a.cssClass === undefined ? m7l.btnClass : a.cssClass) + (a.icon ? ' mbsc-ic mbsc-ic-' + a.icon : '') + '">' + (a.text || '') + '</div></div>';
					});
					Z2l += '</div>';
				}
                Z2l += '</div></div></div></div>' + (W7l ? '</div></div>' : '');
                A7l = P2K(Z2l);
                x3l = P2K('.mbsc-fr-persp', A7l);
                t7l = P2K('.mbsc-fr-scroll', A7l);
                L3l = P2K('.mbsc-fr-w', A7l);
                K3l = P2K('.mbsc-fr-hdr', A7l);
                z7l = P2K('.mbsc-fr-popup', A7l);
                E7l = P2K('.mbsc-fr-aria', A7l);
                D7l = A7l[0];
                n3l = t7l[0];
                Q7l = z7l[0];
                Y7l._markup = A7l;
                Y7l._header = K3l;
                Y7l._isVisible = true;
                a7l = 'orientationchange resize';
                Y7l._markupReady(A7l);
                g7l('onMarkupReady', {
                    target: D7l
                });
                if (W7l) {
                    P2K(window).on('keydown', Z3l);
                    if (m7l.scrollLock) {
                        A7l.on('touchmove mousewheel wheel', function(Y2l) {
                            if (I7l) {
                                Y2l.preventDefault();
                            }
                        });
                    }
                    if (m7l.focusTrap) {
                        R7l.on('focusin', G3l);
                    }
                    if (m7l.closeOnOverlayTap) {
                        var M2l, C2l, G2l, P2l;
                        t7l.on('touchstart mousedown', function(m2l) {
                            if (!C2l && m2l.target == t7l[0]) {
                                C2l = true;
                                M2l = false;
                                G2l = i4K(m2l, 'X');
                                P2l = i4K(m2l, 'Y');
                            }
                        }).on('touchmove mousemove', function(A2l) {
                            if (C2l && !M2l && (Math.abs(i4K(A2l, 'X') - G2l) > 9 || Math.abs(i4K(A2l, 'Y') - P2l) > 9)) {
                                M2l = true;
                            }
                        }).on('touchcancel', function() {
                            C2l = false;
                        }).on('touchend touchcancel mouseup', function(d2l) {
                            if (C2l && !M2l) {
                                Y7l.cancel();
                                if (d2l.type != 'mouseup') {
                                    b0K.preventClick();
                                }
                            }
                            C2l = false;
                        });
                    }
                    if (T7l) {
                        a7l += ' scroll';
                    }
                }
                setTimeout(function() {
                    if (W7l) {
                        A7l.appendTo(F7l);
                    } else if (d7l.is('div') && !Y7l._hasContent) {
                        d7l.empty().append(A7l);
                    } else {
                        if (d7l.hasClass('mbsc-control')) {
                            var f2l = d7l.closest('.mbsc-control-w');
                            A7l.insertAfter(f2l);
                            if (f2l.hasClass('mbsc-select')) {
                                f2l.addClass('mbsc-select-inline');
                            }
                        } else {
                            A7l.insertAfter(d7l);
                        }
                    }
                    N3l = true;
                    Y7l._markupInserted(A7l);
                    g7l('onMarkupInserted', {
                        target: D7l
                    });
                    A7l.on('selectstart mousedown', q6K).on('click', '.mbsc-fr-btn-e', q6K).on('keydown', '.mbsc-fr-btn-e', function(W2l) {
                        if (W2l.keyCode == 32) {
                            W2l.preventDefault();
                            W2l.stopPropagation();
                            this.click();
                        }
                    }).on('keydown', function(b2l) {
                        if (b2l.keyCode == 32) {
                            b2l.preventDefault();
                        } else if (b2l.keyCode == 9 && W7l && m7l.focusTrap) {
                            var g2l = A7l.find('[tabindex="0"]').filter(function() {
                                    return this.offsetWidth > 0 || this.offsetHeight > 0;
                                }),
                                e2l = g2l.index(P2K(':focus', A7l)),
                                R2l = g2l.length - 1,
                                Q2l = 0;
                            if (b2l.shiftKey) {
                                R2l = 0;
                                Q2l = -1;
                            }
                            if (e2l === R2l) {
                                g2l.eq(Q2l)[0].focus();
                                b2l.preventDefault();
                            }
                        }
                    }).on('touchstart mousedown pointerdown', '.mbsc-fr-btn-e', V3l).on('touchend', '.mbsc-fr-btn-e', y7l);
                    P2K('input,select,textarea', A7l).on('selectstart mousedown', function(F2l) {
                        F2l.stopPropagation();
                    }).on('keydown', function(v2l) {
                        if (v2l.keyCode == 32) {
                            v2l.stopPropagation();
                        }
                    });
                    D7l.addEventListener('touchstart', function() {
                        if (!O3l) {
                            O3l = true;
                            F7l.find('.mbsc-no-touch').removeClass('mbsc-no-touch');
                        }
                    }, true);
                    P2K.each(B7l, function(D2l, H2l) {
                        Y7l.tap(P2K('.mbsc-fr-btn' + D2l, A7l), function(l2l) {
                            H2l = g4K(H2l) ? Y7l.buttons[H2l] : H2l;
                            (g4K(H2l.handler) ? Y7l.handlers[H2l.handler] : H2l.handler).call(this, l2l, Y7l);
                        }, true);
                    });
                    Y7l._attachEvents(A7l);
                    Y7l.position();
                    R7l.on(a7l, J3l);
                    if (W7l) {
                        if (f7l && !V2l) {
                            A7l.addClass('mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-' + f7l).on(h4K, J2l).find('.mbsc-fr-popup').addClass('mbsc-anim-' + f7l);
                        } else {
                            M3l(j2l);
                        }
                    }
                    g7l('onShow', {
                        target: D7l,
                        valueText: Y7l._tempValue
                    });
                }, X7l ? 100 : 0);
            };
            Y7l.hide = function(B2l, z2l, y2l, T2l) {
                function X2l() {
                    A7l.off(h4K, X2l);
                    j3l(B2l);
                }
                if (!Y7l._isVisible || !y2l && !Y7l._isValid && z2l == 'set' || !y2l && g7l('onBeforeClose', {
                        valueText: Y7l._tempValue,
                        button: z2l
                    }) === false) {
                    return false;
                }
                if (W7l) {
                    if (P2K(document.activeElement).is('input,textarea') && Q7l.contains(document.activeElement)) {
                        document.activeElement.blur();
                    }
                    P2K(window).off('keydown', Z3l);
                    delete Z2K.activeInstance;
                }
                if (A7l) {
                    if (W7l && f7l && !B2l) {
                        A7l.addClass('mbsc-anim-out mbsc-anim-trans mbsc-anim-trans-' + f7l).on(h4K, X2l).find('.mbsc-fr-popup').addClass('mbsc-anim-' + f7l);
                    } else {
                        j3l(B2l);
                    }
                    Y7l._detachEvents(A7l);
                    R7l.off(a7l, J3l).off('focusin', G3l);
                }
                if (T2l) {
                    T2l();
                }
                g7l('onClose', {
                    valueText: Y7l._value
                });
            };
            Y7l.ariaMessage = function(r2l) {
                E7l.html('');
                setTimeout(function() {
                    E7l.html(r2l);
                }, 100);
            };
            Y7l.isVisible = function() {
                return Y7l._isVisible;
            };
            Y7l.setVal = b2K;
            Y7l.getVal = b2K;
            Y7l._generateContent = b2K;
            Y7l._attachEvents = b2K;
            Y7l._detachEvents = b2K;
            Y7l._readValue = b2K;
            Y7l._clearValue = b2K;
            Y7l._fillValue = b2K;
            Y7l._markupReady = b2K;
            Y7l._markupInserted = b2K;
            Y7l._markupRemove = b2K;
            Y7l._position = b2K;
            Y7l.__processSettings = b2K;
            Y7l.__init = b2K;
            Y7l.__destroy = b2K;
            Y7l._destroy = function() {
                Y7l.hide(true, false, true);
                d7l.off('.mbsc');
                P2K.each(s3l, function(p2l, a2l) {
                    a2l.el.off('.mbsc').prop('readonly', a2l.readOnly);
                    if (a2l.lbl) {
                        a2l.lbl.off('.mbsc');
                    }
                });
                Y7l.__destroy();
            };
            Y7l._processSettings = function() {
                var t2l, I2l;
                Y7l.__processSettings();
                m7l.buttons = m7l.buttons || (m7l.display !== 'inline' ? ['set', 'cancel'] : []);
                m7l.headerText = m7l.headerText === undefined ? m7l.display !== 'inline' ? '{value}' : false : m7l.headerText;
                B7l = m7l.buttons || [];
                W7l = m7l.display !== 'inline';
                H7l = m7l.context != 'body';
                F7l = P2K(m7l.context);
                r7l = H7l ? F7l : P2K('body,html');
                b7l = F7l[0];
                Y7l._window = R7l = P2K(H7l ? m7l.context : window);
                Y7l.live = true;
                for (I2l = 0; I2l < B7l.length; I2l++) {
                    t2l = B7l[I2l];
                    if (t2l == 'ok' || t2l == 'set' || t2l.handler == 'set') {
                        Y7l.live = false;
                    }
                }
                Y7l.buttons.set = {
                    text: m7l.setText,
                    icon: m7l.setIcon,
                    handler: 'set'
                };
                Y7l.buttons.cancel = {
                    text: m7l.cancelText,
                    icon: m7l.cancelIcon,
                    handler: 'cancel'
                };
                Y7l.buttons.close = {
                    text: m7l.closeText,
                    icon: m7l.closeIcon,
                    handler: 'cancel'
                };
                Y7l.buttons.clear = {
                    text: m7l.clearText,
                    icon: m7l.clearIcon,
                    handler: 'clear'
                };
                Y7l._isInput = d7l.is('input');
            };
            Y7l._init = function() {
                if (Y7l._isVisible) {
                    Y7l.hide(true, false, true);
                }
                d7l.off('.mbsc');
                Y7l.__init();
                Y7l._isLiquid = m7l.layout == 'liquid';
                if (W7l) {
                    Y7l._readValue();
                    if (!Y7l._hasContent) {
                        Y7l.attachShow(d7l);
                    }
                } else {
                    Y7l.show();
                }
                d7l.on('change.mbsc', function() {
                    if (!Y7l._preventChange) {
                        Y7l.setVal(d7l.val(), true, false);
                    }
                    Y7l._preventChange = false;
                });
            };
            Y7l.buttons = {};
            Y7l.handlers = {
                set: Y7l.select,
                cancel: Y7l.cancel,
                clear: Y7l.clear
            };
            Y7l._value = null;
            Y7l._isValid = true;
            Y7l._isVisible = false;
            m7l = Y7l.settings;
            g7l = Y7l.trigger;
            if (!k3l) {
                Y7l.init(i3l);
            }
        };
        p2K.prototype._defaults = {
            lang: 'en',
            setText: 'Set',
            selectedText: '{count} selected',
            closeText: 'Close',
            cancelText: 'Cancel',
            clearText: 'Clear',
            context: 'body',
            maxPopupWidth: 600,
            disabled: false,
            closeOnOverlayTap: true,
            showOnFocus: false,
            showOnTap: true,
            display: 'center',
            scroll: true,
            scrollLock: true,
            tap: true,
            btnClass: 'mbsc-fr-btn',
            btnWidth: true,
            focusTrap: true,
            focusOnClose: !f1K
        };
        s6K.Frame = p2K;
        J4K.frame.mobiscroll = {
            headerText: false,
            btnWidth: false
        };
        J4K.scroller.mobiscroll = P2K.extend({}, J4K.frame.mobiscroll, {
            rows: 5,
            showLabel: false,
            selectedLineBorder: 1,
            weekDays: 'min',
            checkIcon: 'ion-ios7-checkmark-empty',
            btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down5',
            btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up5',
            btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left5',
            btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right5'
        });
        P2K(window).on('focus', function() {
            if (F4K) {
                H4K = true;
            }
        });
        var P0K = Z2K.$;
        var U5K = Z2K.classes;
        var I2K = Z2K.util;
        var L0K = I2K.constrain;
        var o5K = I2K.jsPrefix;
        var C1K = I2K.prefix;
        var I0K = I2K.getCoord;
        var a5K = I2K.getPosition;
        var q1K = I2K.testTouch;
        var T0K = I2K.isNumeric;
        var c6K = I2K.isString;
        var U6K = /(iphone|ipod|ipad)/i.test(navigator.userAgent);
        var t6K = function E2l() {};
        var W5K = window.requestAnimationFrame || function(u2l) {
            u2l();
        };
        var d5K = window.cancelAnimationFrame || t6K;
        var p0K = function o2l(G0l, D0l, U0l) {
            function t0l(c0l) {
                x0l('onStart', {
                    domEvent: c0l
                });
                if (U2l.stopProp) {
                    c0l.stopPropagation();
                }
                if (U2l.prevDef || c0l.type == 'mousedown') {
                    c0l.preventDefault();
                }
                if (U2l.readonly || U2l.lock && j0l) {
                    return;
                }
                if (q1K(c0l, this) && !d0l) {
                    if (w0l) {
                        w0l.removeClass('mbsc-btn-a');
                    }
                    k0l = false;
                    if (!j0l) {
                        w0l = P0K(c0l.target).closest('.mbsc-btn-e', this);
                        if (w0l.length && !w0l.hasClass('mbsc-btn-d')) {
                            k0l = true;
                            y0l = setTimeout(function() {
                                w0l.addClass('mbsc-btn-a');
                            }, 100);
                        }
                    }
                    d0l = true;
                    P0l = false;
                    V0l = false;
                    N0l.scrolled = j0l;
                    H0l = I0K(c0l, 'X');
                    u0l = I0K(c0l, 'Y');
                    l0l = o0l = H0l;
                    f0l = 0;
                    m0l = 0;
                    s0l = 0;
                    p0l = new Date();
                    n0l = +a5K(C0l, c2l) || 0;
                    if (j0l) {
                        b0l(n0l, U6K ? 0 : 1);
                    }
                    if (c0l.type === 'mousedown') {
                        P0K(document).on('mousemove', W0l).on('mouseup', e0l);
                    }
                }
            }

            function W0l(q4l) {
                if (d0l) {
                    if (U2l.stopProp) {
                        q4l.stopPropagation();
                    }
                    l0l = I0K(q4l, 'X');
                    X0l = I0K(q4l, 'Y');
                    f0l = l0l - H0l;
                    m0l = X0l - u0l;
                    s0l = c2l ? m0l : f0l;
                    if (k0l && (Math.abs(m0l) > U2l.thresholdY || Math.abs(f0l) > U2l.thresholdX)) {
                        clearTimeout(y0l);
                        w0l.removeClass('mbsc-btn-a');
                        k0l = false;
                    }
                    if (N0l.scrolled || !V0l && Math.abs(s0l) > a0l) {
                        if (!P0l) {
                            x0l('onGestureStart', q0l);
                        }
                        N0l.scrolled = P0l = true;
                        if (!J0l) {
                            J0l = true;
                            Q0l = W5K(E0l);
                        }
                    }
                    if (c2l || U2l.scrollLock) {
                        q4l.preventDefault();
                    } else {
                        if (N0l.scrolled) {
                            q4l.preventDefault();
                        } else if (Math.abs(m0l) > 7) {
                            V0l = true;
                            N0l.scrolled = true;
                            S0l.trigger('touchend');
                        }
                    }
                }
            }

            function E0l() {
                if (M0l) {
                    s0l = L0K(s0l, -L0l * M0l, L0l * M0l);
                }
                b0l(L0K(n0l + s0l, O0l - B0l, K0l + B0l));
                J0l = false;
            }

            function e0l(h4l) {
                if (d0l) {
                    var N4l, s4l = new Date() - p0l;
                    if (U2l.stopProp) {
                        h4l.stopPropagation();
                    }
                    d5K(Q0l);
                    J0l = false;
                    if (!V0l && N0l.scrolled) {
                        if (U2l.momentum && s4l < 300) {
                            N4l = s0l / s4l;
                            s0l = Math.max(Math.abs(s0l), N4l * N4l / U2l.speedUnit) * (s0l < 0 ? -1 : 1);
                        }
                        I0l(s0l);
                    }
                    if (k0l) {
                        clearTimeout(y0l);
                        w0l.addClass('mbsc-btn-a');
                        setTimeout(function() {
                            w0l.removeClass('mbsc-btn-a');
                        }, 100);
                        if (!V0l && !N0l.scrolled) {
                            x0l('onBtnTap', {
                                target: w0l[0]
                            });
                        }
                    }
                    if (h4l.type == 'mouseup') {
                        P0K(document).off('mousemove', W0l).off('mouseup', e0l);
                    }
                    d0l = false;
                }
            }

            function T0l(L4l) {
                L4l = L4l.originalEvent || L4l;
                s0l = c2l ? L4l.deltaY || L4l.wheelDelta || L4l.detail : L4l.deltaX;
                x0l('onStart', {
                    domEvent: L4l
                });
                if (U2l.stopProp) {

                    L4l.stopPropagation();
                }
                if (s0l) {
                    L4l.preventDefault();
                    if (L4l.deltaMode && L4l.deltaMode == 1) {
                        s0l *= 5;
                    }
                    s0l = L0K(-s0l, -20, 20);
                    n0l = h0l;
                    if (U2l.readonly || n0l + s0l < O0l || n0l + s0l > K0l) {
                        return;
                    }
                    if (!P0l) {
                        q0l = {
                            posX: c2l ? 0 : h0l,
                            posY: c2l ? h0l : 0,
                            originX: c2l ? 0 : n0l,
                            originY: c2l ? n0l : 0,
                            direction: s0l > 0 ? c2l ? 270 : 360 : c2l ? 90 : 180
                        };
                        x0l('onGestureStart', q0l);
                    }
                    if (!J0l) {
                        J0l = true;
                        Q0l = W5K(E0l);
                    }
                    P0l = true;
                    clearTimeout(r0l);
                    r0l = setTimeout(function() {
                        d5K(Q0l);
                        J0l = false;
                        P0l = false;
                        I0l(s0l);
                    }, 200);
                }
            }

            function I0l(x4l) {
                var n4l, w4l, i4l;
                if (M0l) {
                    x4l = L0K(x4l, -L0l * M0l, L0l * M0l);
                }
                i4l = L0K(Math.round((n0l + x4l) / L0l) * L0l, O0l, K0l);
                Z0l = Math.round(i4l / L0l);
                if (i0l) {
                    if (x4l < 0) {
                        for (n4l = i0l.length - 1; n4l >= 0; n4l--) {
                            if (Math.abs(i4l) + A0l >= i0l[n4l].breakpoint) {
                                Z0l = n4l;
                                R0l = 2;
                                i4l = i0l[n4l].snap2;
                                break;
                            }
                        }
                    } else if (x4l >= 0) {
                        for (n4l = 0; n4l < i0l.length; n4l++) {
                            if (Math.abs(i4l) <= i0l[n4l].breakpoint) {
                                Z0l = n4l;
                                R0l = 1;
                                i4l = i0l[n4l].snap1;
                                break;
                            }
                        }
                    }
                    i4l = L0K(i4l, O0l, K0l);
                }
                w4l = U2l.time || (h0l < O0l || h0l > K0l ? 1000 : Math.max(1000, Math.abs(i4l - h0l) * U2l.timeUnit));
                q0l.destinationX = c2l ? 0 : i4l;
                q0l.destinationY = c2l ? i4l : 0;
                q0l.duration = w4l;
                q0l.transitionTiming = Y0l;
                x0l('onGestureEnd', q0l);
                b0l(i4l, w4l);
            }

            function b0l(K4l, O4l, j4l, M4l) {
                var C4l = K4l != h0l,
                    Z4l = O4l > 1,
                    S4l = function J4l() {
                        clearInterval(g0l);
                        clearTimeout(F0l);
                        j0l = false;
                        h0l = K4l;
                        q0l.posX = c2l ? 0 : K4l;
                        q0l.posY = c2l ? K4l : 0;
                        if (C4l) {
                            x0l('onMove', q0l);
                        }
                        if (Z4l) {
                            x0l('onAnimationEnd', q0l);
                        }
                        if (M4l) {
                            M4l();
                        }
                    };
                q0l = {
                    posX: c2l ? 0 : h0l,
                    posY: c2l ? h0l : 0,
                    originX: c2l ? 0 : n0l,
                    originY: c2l ? n0l : 0,
                    direction: K4l - h0l > 0 ? c2l ? 270 : 360 : c2l ? 90 : 180
                };
                h0l = K4l;
                if (Z4l) {
                    q0l.destinationX = c2l ? 0 : K4l;
                    q0l.destinationY = c2l ? K4l : 0;
                    q0l.duration = O4l;
                    q0l.transitionTiming = Y0l;
                    x0l('onAnimationStart', q0l);
                }
                v0l[o5K + 'Transition'] = O4l ? C1K + 'transform ' + Math.round(O4l) + 'ms ' + Y0l : '';
                v0l[o5K + 'Transform'] = 'translate3d(' + (c2l ? '0,' + K4l + 'px,' : K4l + 'px,' + '0,') + '0)';
                if (!C4l && !j0l || !O4l || O4l <= 1) {
                    S4l();
                } else if (O4l) {
                    j0l = !j4l;
                    clearInterval(g0l);
                    g0l = setInterval(function() {
                        var G4l = +a5K(C0l, c2l) || 0;
                        q0l.posX = c2l ? 0 : G4l;
                        q0l.posY = c2l ? G4l : 0;
                        x0l('onMove', q0l);
                        if (Math.abs(G4l - K4l) < 2) {
                            S4l();
                        }
                    }, 100);
                    clearTimeout(F0l);
                    F0l = setTimeout(function() {
                        S4l();
                    }, O4l);
                }
                if (U2l.sync) {
                    U2l.sync(K4l, O4l, Y0l);
                }
            }
            var w0l, y0l, A0l, f0l, m0l, s0l, z0l, Y0l, B0l, l0l, X0l, q0l, k0l, o0l, K0l, M0l, O0l, d0l, j0l, V0l, Q0l, J0l, P0l, r0l, g0l, L0l, i0l, n0l, p0l, H0l, u0l, v0l, C0l, F0l, a0l, x0l, c2l, N0l = this,
                h0l, Z0l = 0,
                R0l = 1,
                U2l = D0l,
                S0l = P0K(G0l);
            U5K.Base.call(this, G0l, D0l, true);
            N0l.scrolled = false;
            N0l.scroll = function(P4l, V4l, k4l, Y4l) {
                if (!T0K(P4l)) {
                    P4l = Math.ceil((P0K(P4l, G0l).length ? Math.round(C0l.offset()[z0l] - P0K(P4l, G0l).offset()[z0l]) : h0l) / L0l) * L0l;
                } else {
                    P4l = Math.round(P4l / L0l) * L0l;
                }
                P4l = L0K(P4l, O0l, K0l);
                Z0l = Math.round(P4l / L0l);
                n0l = h0l;
                b0l(P4l, V4l, k4l, Y4l);
            };
            N0l.refresh = function(A4l) {
                var m4l;
                A0l = U2l.contSize === undefined ? c2l ? S0l.height() : S0l.width() : U2l.contSize;
                O0l = U2l.minScroll === undefined ? Math.min(0, c2l ? A0l - C0l.height() : A0l - C0l.width()) : U2l.minScroll;
                K0l = U2l.maxScroll === undefined ? 0 : U2l.maxScroll;
                i0l = null;
                if (!c2l && U2l.rtl) {
                    m4l = K0l;
                    K0l = -O0l;
                    O0l = -m4l;
                }
                if (c6K(U2l.snap)) {
                    i0l = [];
                    C0l.find(U2l.snap).each(function() {
                        var d4l = c2l ? this.offsetTop : this.offsetLeft,
                            f4l = c2l ? this.offsetHeight : this.offsetWidth;
                        i0l.push({
                            breakpoint: d4l + f4l / 2,
                            snap1: -d4l,
                            snap2: A0l - d4l - f4l
                        });
                    });
                }
                L0l = T0K(U2l.snap) ? U2l.snap : 1;
                M0l = U2l.snap ? U2l.maxSnapScroll : 0;
                Y0l = U2l.easing;
                B0l = U2l.elastic ? T0K(U2l.snap) ? L0l : T0K(U2l.elastic) ? U2l.elastic : 0 : 0;
                if (h0l === undefined) {
                    h0l = U2l.initialPos;
                    Z0l = Math.round(h0l / L0l);
                }
                if (!A4l) {
                    N0l.scroll(U2l.snap ? i0l ? i0l[Z0l]['snap' + R0l] : Z0l * L0l : h0l);
                }
            };
            N0l._processSettings = function() {
                c2l = U2l.axis == 'Y';
                z0l = c2l ? 'top' : 'left';
                C0l = U2l.moveElement || S0l.children().eq(0);
                v0l = C0l[0].style;
                a0l = c2l ? U2l.thresholdY : U2l.thresholdX;
            };
            N0l._init = function() {
                N0l.refresh();
                S0l.on('touchstart mousedown', t0l).on('touchmove', W0l).on('touchend touchcancel', e0l);
                if (U2l.mousewheel) {
                    S0l.on('wheel mousewheel', T0l);
                }
                if (G0l.addEventListener) {
                    G0l.addEventListener('click', function(W4l) {
                        if (N0l.scrolled) {
                            N0l.scrolled = false;
                            W4l.stopPropagation();
                            W4l.preventDefault();
                        }
                    }, true);
                }
            };
            N0l._destroy = function() {
                clearInterval(g0l);
                S0l.off('touchstart mousedown', t0l).off('touchmove', W0l).off('touchend touchcancel', e0l).off('wheel mousewheel', T0l);
            };
            U2l = N0l.settings;
            x0l = N0l.trigger;
            if (!U0l) {
                N0l.init(D0l);
            }
        };
        p0K.prototype = {
            _class: 'scrollview',
            _defaults: {
                speedUnit: 0.0022,
                timeUnit: 3,
                initialPos: 0,
                axis: 'Y',
                thresholdX: 10,
                thresholdY: 5,
                easing: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',
                stopProp: true,
                momentum: true,
                mousewheel: true,
                elastic: true
            }
        };
        U5K.ScrollView = p0K;
        Z2K.presetShort('scrollview', 'ScrollView', false);
        var G2K = Z2K.$;
        var m0K = G2K.extend;
        var X4K = Z2K.platform;
        var K0K = Z2K.util;
        var k5K = K0K.jsPrefix;
        var G4K = K0K.prefix;
        var K4K = K0K.getCoord;
        var C6K = K0K.testTouch;
        var R4K = window.CSS;
        var O6K = R4K && R4K.supports && R4K.supports("(transform-style: preserve-3d)");
        var x6K = !O6K || X4K.name == 'wp' || X4K.name == 'android';
        Z2K.presetShort('scroller', 'Scroller', false);
        var J5K = function b4l(y4l, Z5l, f5l) {
            function k5l(b5l) {
                var g5l = +G2K(this).attr('data-index');
                b5l.stopPropagation();
                if (b5l.type === 'mousedown') {
                    b5l.preventDefault();
                }
                if (C6K(b5l, this) && !S5l(g5l)) {
                    t4l = G2K(this).addClass('mbsc-sc-btn-a');
                    j5l = K4K(b5l, 'X');
                    G5l = K4K(b5l, 'Y');
                    a4l = true;
                    c4l = false;
                    setTimeout(function() {
                        J5l(g5l, t4l.attr('data-dir') == 'inc' ? 1 : -1);
                    }, 100);
                    if (b5l.type === 'mousedown') {
                        G2K(document).on('mousemove', i5l).on('mouseup', x5l);
                    }
                }
            }

            function i5l(R5l) {
                if (Math.abs(j5l - K4K(R5l, 'X')) > 7 || Math.abs(G5l - K4K(R5l, 'Y')) > 7) {
                    n5l(true);
                }
            }

            function x5l(Q5l) {
                n5l();
                Q5l.preventDefault();
                if (Q5l.type === 'mouseup') {
                    G2K(document).off('mousemove', i5l).off('mouseup', x5l);
                }
            }

            function Y5l(e5l) {
                var F5l = G2K(this).attr('data-index'),
                    v5l, H5l;
                if (e5l.keyCode == 38) {
                    v5l = true;
                    H5l = -1;
                } else if (e5l.keyCode == 40) {
                    v5l = true;
                    H5l = 1;
                } else if (e5l.keyCode == 32) {
                    v5l = true;
                    C5l(F5l, v4l[F5l]._$markup.find('.mbsc-sc-itm[data-val="' + e4l[F5l] + '"]'));
                }
                if (v5l) {
                    e5l.stopPropagation();
                    e5l.preventDefault();
                    if (H5l && !a4l) {
                        a4l = true;
                        c4l = false;
                        J5l(F5l, H5l);
                    }
                }
            }

            function W5l() {
                n5l();
            }

            function C5l(B5l, y5l) {
                var D5l = v4l[B5l],
                    T5l = y5l.attr('data-index'),
                    l5l = p4l(D5l, T5l),
                    z5l = g4l._tempSelected[B5l],
                    X5l = K0K.isNumeric(D5l.multiple) ? D5l.multiple : Infinity;
                if (D4l('onItemTap', {
                        target: y5l[0],
                        index: B5l,
                        value: l5l,
                        selected: y5l.hasClass('mbsc-sc-itm-sel')
                    }) !== false) {
                    if (D5l.multiple && !D5l._disabled[l5l]) {
                        if (z5l[l5l] !== undefined) {
                            y5l.removeClass(B4l).removeAttr('aria-selected');
                            delete z5l[l5l];
                        } else {
                            if (X5l == 1) {
                                g4l._tempSelected[B5l] = z5l = {};
                                D5l._$markup.find('.mbsc-sc-itm-sel').removeClass(B4l).removeAttr('aria-selected');
                            }
                            if (K0K.objectToArray(z5l).length < X5l) {
                                y5l.addClass(B4l).attr('aria-selected', 'true');
                                z5l[l5l] = l5l;
                            }
                        }
                    }
                    K5l(D5l, B5l, T5l, E4l, true, true, D5l.multiple);
                    if (g4l.live && !D5l.multiple && (R4l.setOnTap === true || R4l.setOnTap[B5l])) {
                        setTimeout(function() {
                            g4l.select();
                        }, 200);
                    }
                }
            }

            function O5l(r5l, a5l) {
                return (r5l._array ? r5l._map[a5l] : r5l.getIndex(a5l, g4l)) || 0;
            }

            function V5l(p5l, t5l) {
                var I5l = p5l.data;
                if (t5l >= p5l.min && t5l <= p5l.max) {
                    return p5l._array ? p5l.circular ? G2K(I5l).get(t5l % p5l._length) : I5l[t5l] : G2K.isFunction(I5l) ? I5l(t5l, g4l) : '';
                }
            }

            function q5l(E5l) {
                return G2K.isPlainObject(E5l) ? E5l.value !== undefined ? E5l.value : E5l.display : E5l;
            }

            function d5l(u5l) {
                var o5l = G2K.isPlainObject(u5l) ? u5l.display : u5l;
                return o5l === undefined ? '' : o5l;
            }

            function p4l(U5l, c5l) {
                return q5l(V5l(U5l, c5l));
            }

            function J5l(q6l, N6l) {
                if (!c4l) {
                    P5l(q6l, N6l);
                }
                if (a4l) {
                    clearInterval(N5l);
                    N5l = setInterval(function() {
                        P5l(q6l, N6l);
                    }, R4l.delay);
                }
            }

            function n5l(s6l) {
                clearInterval(N5l);
                c4l = s6l;
                a4l = false;
                if (t4l) {
                    t4l.removeClass('mbsc-sc-btn-a');
                }
            }

            function P5l(L6l, n6l) {
                var h6l = v4l[L6l];
                K5l(h6l, L6l, h6l._current + n6l, E4l, n6l == 1 ? 1 : 2);
            }

            function S5l(i6l) {
                return G2K.isArray(R4l.readonly) ? R4l.readonly[i6l] : R4l.readonly;
            }

            function w5l(x6l, w6l, O6l) {
                var K6l = x6l._index - x6l._batch;
                x6l.data = x6l.data || [];
                x6l.key = x6l.key !== undefined ? x6l.key : w6l;
                x6l.label = x6l.label !== undefined ? x6l.label : w6l;
                x6l._map = {};
                x6l._array = G2K.isArray(x6l.data);
                if (x6l._array) {
                    x6l._length = x6l.data.length;
                    G2K.each(x6l.data, function(S6l, C6l) {
                        x6l._map[q5l(C6l)] = S6l;
                    });
                }
                x6l.circular = R4l.circular === undefined ? x6l.circular === undefined ? x6l._array && x6l._length > R4l.rows : x6l.circular : G2K.isArray(R4l.circular) ? R4l.circular[w6l] : R4l.circular;
                x6l.min = x6l._array ? x6l.circular ? -Infinity : 0 : x6l.min === undefined ? -Infinity : x6l.min;
                x6l.max = x6l._array ? x6l.circular ? Infinity : x6l._length - 1 : x6l.max === undefined ? Infinity : x6l.max;
                x6l._nr = w6l;
                x6l._index = O5l(x6l, e4l[w6l]);
                x6l._disabled = {};
                x6l._batch = 0;
                x6l._current = x6l._index;
                x6l._first = x6l._index - H4l;
                x6l._last = x6l._index + H4l;
                x6l._offset = x6l._first;
                if (O6l) {
                    x6l._offset -= x6l._margin / Q4l + (x6l._index - K6l);
                    x6l._margin += (x6l._index - K6l) * Q4l;
                } else {
                    x6l._margin = 0;
                }
                x6l._refresh = function(j6l) {
                    var Z6l = -(x6l.min - x6l._offset + (x6l.multiple && !F4l ? Math.floor(R4l.rows / 2) : 0)) * Q4l,
                        M6l = Math.min(Z6l, -(x6l.max - x6l._offset - (x6l.multiple && !F4l ? Math.floor(R4l.rows / 2) : 0)) * Q4l);
                    m0K(x6l._scroller.settings, {
                        minScroll: M6l,
                        maxScroll: Z6l
                    });
                    x6l._scroller.refresh(j6l);
                };
                h5l[x6l.key] = x6l;
                return x6l;
            }

            function z4l(V6l, d6l, e6l, Q6l, f6l) {
                var P6l, R6l, J6l, G6l, W6l, m6l, g6l, A6l, Y6l = '',
                    k6l = g4l._tempSelected[d6l],
                    b6l = V6l._disabled || {};
                for (P6l = e6l; P6l <= Q6l; P6l++) {
                    J6l = V5l(V6l, P6l);
                    W6l = d5l(J6l);
                    G6l = q5l(J6l);
                    R6l = J6l && J6l.cssClass !== undefined ? J6l.cssClass : '';
                    m6l = J6l && J6l.label !== undefined ? J6l.label : '';
                    g6l = J6l && J6l.invalid;
                    A6l = G6l !== undefined && G6l == e4l[d6l] && !V6l.multiple;
                    Y6l += '<div role="option" aria-selected="' + (k6l[G6l] ? true : false) + '" class="mbsc-sc-itm ' + (f6l ? 'mbsc-sc-itm-3d ' : '') + R6l + ' ' + (A6l ? 'mbsc-sc-itm-sel ' : '') + (k6l[G6l] ? B4l : '') + (G6l === undefined ? ' mbsc-sc-itm-ph' : ' mbsc-btn-e') + (g6l ? ' mbsc-sc-itm-inv-h mbsc-btn-d' : '') + (b6l[G6l] ? ' mbsc-sc-itm-inv mbsc-btn-d' : '') + '" data-index="' + P6l + '" data-val="' + G6l + '"' + (m6l ? ' aria-label="' + m6l + '"' : '') + (A6l ? ' aria-selected="true"' : '') + ' style="height:' + Q4l + 'px;line-height:' + Q4l + 'px;' + (f6l ? G4K + 'transform:rotateX(' + (V6l._offset - P6l) * s5l % 360 + 'deg) translateZ(' + Q4l * R4l.rows / 2 + 'px);' : '') + '">' + (X4l > 1 ? '<div class="mbsc-sc-itm-ml" style="line-height:' + Math.round(Q4l / X4l) + 'px;font-size:' + Math.round(Q4l / X4l * 0.8) + 'px;">' : '') + W6l + (X4l > 1 ? '</div>' : '') + '</div>';
                }
                return Y6l;
            }

            function m5l(v6l) {
                var F6l = R4l.headerText;
                return F6l ? typeof F6l === 'function' ? F6l.call(y4l, v6l) : F6l.replace(/\{value\}/i, v6l) : '';
            }

            function A5l(H6l, T6l, r6l) {
                var X6l = Math.round(-r6l / Q4l) + H6l._offset,
                    D6l = X6l - H6l._current,
                    l6l = H6l._first,
                    B6l = H6l._last,
                    z6l = l6l + H4l - l4l + 1,
                    y6l = B6l - H4l + l4l;
                if (D6l) {
                    H6l._first += D6l;
                    H6l._last += D6l;
                    H6l._current = X6l;
                    if (D6l > 0) {
                        H6l._$scroller.append(z4l(H6l, T6l, Math.max(B6l + 1, l6l + D6l), B6l + D6l));
                        G2K('.mbsc-sc-itm', H6l._$scroller).slice(0, Math.min(D6l, B6l - l6l + 1)).remove();
                        if (F4l) {
                            H6l._$3d.append(z4l(H6l, T6l, Math.max(y6l + 1, z6l + D6l), y6l + D6l, true));
                            G2K('.mbsc-sc-itm', H6l._$3d).slice(0, Math.min(D6l, y6l - z6l + 1)).attr('class', 'mbsc-sc-itm-del');
                        }
                    } else if (D6l < 0) {
                        H6l._$scroller.prepend(z4l(H6l, T6l, l6l + D6l, Math.min(l6l - 1, B6l + D6l)));
                        G2K('.mbsc-sc-itm', H6l._$scroller).slice(Math.max(D6l, l6l - B6l - 1)).remove();
                        if (F4l) {
                            H6l._$3d.prepend(z4l(H6l, T6l, z6l + D6l, Math.min(z6l - 1, y6l + D6l), true));
                            G2K('.mbsc-sc-itm', H6l._$3d).slice(Math.max(D6l, z6l - y6l - 1)).attr('class', 'mbsc-sc-itm-del');
                        }
                    }
                    H6l._margin += D6l * Q4l;
                    H6l._$scroller.css('margin-top', H6l._margin + 'px');
                }
            }

            function M5l(N1l, a6l, q1l, s1l) {
                var u6l, p6l = v4l[N1l],
                    o6l = s1l || p6l._disabled,
                    I6l = O5l(p6l, a6l),
                    c6l = a6l,
                    U6l = a6l,
                    t6l = 0,
                    E6l = 0;
                if (a6l === undefined) {
                    a6l = p4l(p6l, I6l);
                }
                if (o6l[a6l] === true) {
                    u6l = 0;
                    while (I6l - t6l >= p6l.min && o6l[c6l] && u6l < 100) {
                        u6l++;
                        t6l++;
                        c6l = p4l(p6l, I6l - t6l);
                    }
                    u6l = 0;
                    while (I6l + E6l < p6l.max && o6l[U6l] && u6l < 100) {
                        u6l++;
                        E6l++;
                        U6l = p4l(p6l, I6l + E6l);
                    }
                    if ((E6l < t6l && E6l && q1l !== 2 || !t6l || I6l - t6l < 0 || q1l == 1) && !o6l[U6l]) {
                        a6l = U6l;
                    } else {
                        a6l = c6l;
                    }
                }
                return a6l;
            }

            function I4l(C1l, n1l, O1l, i1l, S1l, Z1l) {
                var x1l, w1l, K1l, h1l, L1l = g4l._isVisible;
                r4l = true;
                h1l = R4l.validate.call(y4l, {
                    values: e4l.slice(0),
                    index: n1l,
                    direction: O1l
                }, g4l) || {};
                r4l = false;
                if (h1l.valid) {
                    g4l._tempWheelArray = e4l = h1l.valid.slice(0);
                }
                if (!Z1l) {
                    G2K.each(v4l, function(j1l, M1l) {
                        if (L1l) {
                            M1l._$markup.find('.mbsc-sc-itm-inv').removeClass('mbsc-sc-itm-inv mbsc-btn-d');
                        }
                        M1l._disabled = {};
                        if (h1l.disabled && h1l.disabled[j1l]) {
                            G2K.each(h1l.disabled[j1l], function(P1l, G1l) {
                                M1l._disabled[G1l] = true;
                                if (L1l) {
                                    M1l._$markup.find('.mbsc-sc-itm[data-val="' + G1l + '"]').addClass('mbsc-sc-itm-inv mbsc-btn-d');
                                }
                            });
                        }
                        e4l[j1l] = M1l.multiple ? e4l[j1l] : M5l(j1l, e4l[j1l], O1l);
                        if (L1l) {
                            if (!M1l.multiple || n1l === undefined) {
                                M1l._$markup.find('.mbsc-sc-itm-sel').removeClass(B4l).removeAttr('aria-selected');
                            }
                            if (M1l.multiple) {
                                if (n1l === undefined) {
                                    for (var J1l in g4l._tempSelected[j1l]) {
                                        M1l._$markup.find('.mbsc-sc-itm[data-val="' + J1l + '"]').addClass(B4l).attr('aria-selected', 'true');
                                    }
                                }
                            } else {
                                M1l._$markup.find('.mbsc-sc-itm[data-val="' + e4l[j1l] + '"]').addClass('mbsc-sc-itm-sel').attr('aria-selected', 'true');
                            }
                            w1l = O5l(M1l, e4l[j1l]);
                            x1l = w1l - M1l._index + M1l._batch;
                            if (Math.abs(x1l) > 2 * H4l + 1) {
                                K1l = x1l + (2 * H4l + 1) * (x1l > 0 ? -1 : 1);
                                M1l._offset += K1l;
                                M1l._margin -= K1l * Q4l;
                                M1l._refresh();
                            }
                            M1l._index = w1l + M1l._batch;
                            M1l._scroller.scroll(-(w1l - M1l._offset + M1l._batch) * Q4l, n1l === j1l || n1l === undefined ? C1l : E4l, S1l);
                        }
                    });
                }
                D4l('onValidated');
                g4l._tempValue = R4l.formatValue(e4l, g4l);
                if (L1l) {
                    g4l._header.html(m5l(g4l._tempValue));
                }
                if (g4l.live) {
                    g4l._hasValue = i1l || g4l._hasValue;
                    o4l(i1l, i1l, 0, true);
                    if (i1l) {
                        D4l('onSet', {
                            valueText: g4l._value
                        });
                    }
                }
                if (i1l) {
                    D4l('onChange', {
                        valueText: g4l._tempValue
                    });
                }
            }

            function K5l(V1l, Y1l, m1l, A1l, d1l, f1l, W1l) {
                var k1l = p4l(V1l, m1l);
                if (k1l !== undefined) {
                    e4l[Y1l] = k1l;
                    V1l._batch = V1l._array ? Math.floor(m1l / V1l._length) * V1l._length : 0;
                    setTimeout(function() {
                        I4l(A1l, Y1l, d1l, true, f1l, W1l);
                    }, 10);
                }
            }

            function o4l(R1l, g1l, Q1l, e1l, F1l) {
                if (!e1l) {
                    I4l(Q1l);
                } else {
                    g4l._tempValue = R4l.formatValue(g4l._tempWheelArray, g4l);
                }
                if (!F1l) {
                    g4l._wheelArray = [];
                    for (var b1l = 0; b1l < e4l.length; b1l++) {
                        g4l._wheelArray[b1l] = v4l[b1l] && v4l[b1l].multiple ? Object.keys(g4l._tempSelected[b1l])[0] : e4l[b1l];
                    }
                    g4l._value = g4l._hasValue ? g4l._tempValue : null;
                    g4l._selected = m0K(true, {}, g4l._tempSelected);
                }
                if (R1l) {
                    if (g4l._isInput) {
                        U4l.val(g4l._hasValue ? g4l._tempValue : '');
                    }
                    D4l('onFill', {
                        valueText: g4l._hasValue ? g4l._tempValue : '',
                        change: g1l
                    });
                    if (g1l) {
                        g4l._preventChange = true;
                        U4l.trigger('change');
                    }
                }
            }
            var L5l, t4l, l4l, H4l = 40,
                E4l = 1000,
                s5l, F4l, B4l, T4l, N5l, a4l, c4l, j5l, G5l, e4l, Q4l, u4l, r4l, R4l, D4l, X4l, v4l, h5l, g4l = this,
                U4l = G2K(y4l);
            p2K.call(this, y4l, Z5l, true);
            g4l.setVal = g4l._setVal = function(v1l, H1l, D1l, l1l, B1l) {
                g4l._hasValue = v1l !== null && v1l !== undefined;
                g4l._tempWheelArray = e4l = G2K.isArray(v1l) ? v1l.slice(0) : R4l.parseValue.call(y4l, v1l, g4l) || [];
                o4l(H1l, D1l === undefined ? H1l : D1l, B1l, false, l1l);
            };
            g4l.getVal = g4l._getVal = function(y1l) {
                var z1l = g4l._hasValue || y1l ? g4l[y1l ? '_tempValue' : '_value'] : null;
                return K0K.isNumeric(z1l) ? +z1l : z1l;
            };
            g4l.setArrayVal = g4l.setVal;
            g4l.getArrayVal = function(T1l) {
                return T1l ? g4l._tempWheelArray : g4l._wheelArray;
            };
            g4l.changeWheel = function(a1l, p1l, t1l) {
                var r1l, X1l;
                G2K.each(a1l, function(I1l, E1l) {
                    X1l = h5l[I1l];
                    r1l = X1l._nr;
                    if (X1l) {
                        m0K(X1l, E1l);
                        w5l(X1l, r1l, true);
                        if (g4l._isVisible) {
                            if (F4l) {
                                X1l._$3d.html(z4l(X1l, r1l, X1l._first + H4l - l4l + 1, X1l._last - H4l + l4l, true));
                            }
                            X1l._$scroller.html(z4l(X1l, r1l, X1l._first, X1l._last)).css('margin-top', X1l._margin + 'px');
                            X1l._refresh(r4l);
                        }
                    }
                });
                if (g4l._isVisible && !g4l._isLiquid && !r4l) {
                    g4l.position();
                }
                if (!r4l) {
                    I4l(p1l, undefined, undefined, t1l);
                }
            };
            g4l.getValidValue = M5l;
            g4l._generateContent = function() {
                var q8l, U1l = 0,
                    o1l = '',
                    c1l = F4l ? G4K + 'transform: translateZ(' + (Q4l * R4l.rows / 2 + 3) + 'px);' : '',
                    N8l = '<div class="mbsc-sc-whl-l" style="' + c1l + 'height:' + Q4l + 'px;margin-top:-' + (Q4l / 2 + (R4l.selectedLineBorder || 0)) + 'px;"></div>',
                    u1l = 0;
                G2K.each(R4l.wheels, function(h8l, s8l) {
                    o1l += '<div class="mbsc-w-p mbsc-sc-whl-gr-c' + (R4l.showLabel ? ' mbsc-sc-lbl-v' : '') + '">' + N8l + '<div class="mbsc-sc-whl-gr' + (F4l ? ' mbsc-sc-whl-gr-3d' : '') + (T4l ? ' mbsc-sc-cp' : '') + (R4l.width || R4l.maxWidth ? '"' : '" style="max-width:' + R4l.maxPopupWidth + 'px;"') + '>';
                    G2K.each(s8l, function(n8l, L8l) {
                        g4l._tempSelected[u1l] = m0K({}, g4l._selected[u1l]);
                        v4l[u1l] = w5l(L8l, u1l);
                        U1l += R4l.maxWidth ? R4l.maxWidth[u1l] || R4l.maxWidth : R4l.width ? R4l.width[u1l] || R4l.width : 0;
                        q8l = L8l.label !== undefined ? L8l.label : n8l;
                        o1l += '<div class="mbsc-sc-whl-w ' + (L8l.cssClass || '') + (L8l.multiple ? ' mbsc-sc-whl-multi' : '') + '" style="' + (R4l.width ? 'width:' + (R4l.width[u1l] || R4l.width) + 'px;' : (R4l.minWidth ? 'min-width:' + (R4l.minWidth[u1l] || R4l.minWidth) + 'px;' : '') + (R4l.maxWidth ? 'max-width:' + (R4l.maxWidth[u1l] || R4l.maxWidth) + 'px;' : '')) + '">' + '<div class="mbsc-sc-whl-o" style="' + c1l + '"></div>' + N8l + '<div tabindex="0" aria-live="off" aria-label="' + q8l + '"' + (L8l.multiple ? ' aria-multiselectable="true"' : '') + ' role="listbox" data-index="' + u1l + '" class="mbsc-sc-whl"' + ' style="' + 'height:' + R4l.rows * Q4l * (F4l ? 1.1 : 1) + 'px;">' + (T4l ? '<div data-index="' + u1l + '" data-dir="inc" class="mbsc-sc-btn mbsc-sc-btn-plus ' + (R4l.btnPlusClass || '') + '" style="height:' + Q4l + 'px;line-height:' + Q4l + 'px;"></div>' + '<div data-index="' + u1l + '" data-dir="dec" class="mbsc-sc-btn mbsc-sc-btn-minus ' + (R4l.btnMinusClass || '') + '" style="height:' + Q4l + 'px;line-height:' + Q4l + 'px;"></div>' : '') + '<div class="mbsc-sc-lbl">' + q8l + '</div>' + '<div class="mbsc-sc-whl-c"' + ' style="height:' + u4l + 'px;margin-top:-' + (u4l / 2 + 1) + 'px;' + c1l + '">' + '<div class="mbsc-sc-whl-sc" style="top:' + (u4l - Q4l) / 2 + 'px;">';
                        o1l += z4l(L8l, u1l, L8l._first, L8l._last) + '</div></div>';
                        if (F4l) {
                            o1l += '<div class="mbsc-sc-whl-3d" style="height:' + Q4l + 'px;margin-top:-' + Q4l / 2 + 'px;">';
                            o1l += z4l(L8l, u1l, L8l._first + H4l - l4l + 1, L8l._last - H4l + l4l, true);
                            o1l += '</div>';
                        }
                        o1l += '</div></div>';
                        u1l++;
                    });
                    o1l += '</div></div>';
                });
                if (U1l) {
                    R4l.maxPopupWidth = U1l;
                }
                return o1l;
            };
            g4l._attachEvents = function(i8l) {
                G2K('.mbsc-sc-btn', i8l).on('touchstart mousedown', k5l).on('touchmove', i5l).on('touchend touchcancel', x5l);
                G2K('.mbsc-sc-whl', i8l).on('keydown', Y5l).on('keyup', W5l);
            };
            g4l._detachEvents = function() {
                for (var x8l = 0; x8l < v4l.length; x8l++) {
                    v4l[x8l]._scroller.destroy();
                }
            };
            g4l._markupReady = function(w8l) {
                L5l = w8l;
                G2K('.mbsc-sc-whl', L5l).each(function(O8l) {
                    var Z8l, S8l = G2K(this),
                        K8l = v4l[O8l],
                        C8l = -(K8l.min - K8l._offset + (K8l.multiple && !F4l ? Math.floor(R4l.rows / 2) : 0)) * Q4l,
                        M8l = Math.min(C8l, -(K8l.max - K8l._offset - (K8l.multiple && !F4l ? Math.floor(R4l.rows / 2) : 0)) * Q4l);
                    K8l._$markup = S8l;
                    K8l._$scroller = G2K('.mbsc-sc-whl-sc', this);
                    K8l._$3d = G2K('.mbsc-sc-whl-3d', this);
                    K8l._scroller = new p0K(this, {
                        mousewheel: R4l.mousewheel,
                        moveElement: K8l._$scroller,
                        initialPos: (K8l._first - K8l._index) * Q4l,
                        contSize: 0,
                        snap: Q4l,
                        minScroll: M8l,
                        maxScroll: C8l,
                        maxSnapScroll: H4l,
                        prevDef: true,
                        stopProp: true,
                        timeUnit: 3,
                        easing: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',
                        sync: function j8l(G8l, J8l, P8l) {
                            if (F4l) {
                                K8l._$3d[0].style[k5K + 'Transition'] = J8l ? G4K + 'transform ' + Math.round(J8l) + 'ms ' + P8l : '';
                                K8l._$3d[0].style[k5K + 'Transform'] = 'rotateX(' + -G8l / Q4l * s5l + 'deg)';
                            }
                        },
                        onStart: function V8l(Y8l, k8l) {
                            k8l.settings.readonly = S5l(O8l);
                        },
                        onGestureStart: function m8l() {
                            S8l.addClass('mbsc-sc-whl-a mbsc-sc-whl-anim');
                            D4l('onWheelGestureStart', {
                                index: O8l
                            });
                        },
                        onGestureEnd: function A8l(d8l) {
                            var f8l = d8l.direction == 90 ? 1 : 2,
                                W8l = d8l.duration,
                                b8l = d8l.destinationY;
                            Z8l = Math.round(-b8l / Q4l) + K8l._offset;
                            K5l(K8l, O8l, Z8l, W8l, f8l);
                        },
                        onAnimationStart: function g8l() {
                            S8l.addClass('mbsc-sc-whl-anim');
                        },
                        onAnimationEnd: function R8l() {
                            S8l.removeClass('mbsc-sc-whl-a mbsc-sc-whl-anim');
                            D4l('onWheelAnimationEnd', {
                                index: O8l
                            });
                            K8l._$3d.find('.mbsc-sc-itm-del').remove();
                        },
                        onMove: function Q8l(e8l) {
                            A5l(K8l, O8l, e8l.posY);
                        },
                        onBtnTap: function F8l(v8l) {
                            C5l(O8l, G2K(v8l.target));
                        }
                    });
                });
                I4l();
            };
            g4l._fillValue = function() {
                g4l._hasValue = true;
                o4l(true, true, 0, true);
            };
            g4l._clearValue = function() {
                G2K('.mbsc-sc-whl-multi .mbsc-sc-itm-sel', L5l).removeClass(B4l).removeAttr('aria-selected');
            };
            g4l._readValue = function() {
                var D8l = U4l.val() || '',
                    H8l = 0;
                if (D8l !== '') {
                    g4l._hasValue = true;
                }
                g4l._tempWheelArray = e4l = g4l._hasValue && g4l._wheelArray ? g4l._wheelArray.slice(0) : R4l.parseValue.call(y4l, D8l, g4l) || [];
                g4l._tempSelected = m0K(true, {}, g4l._selected);
                G2K.each(R4l.wheels, function(B8l, l8l) {
                    G2K.each(l8l, function(y8l, z8l) {
                        v4l[H8l] = w5l(z8l, H8l);
                        H8l++;
                    });
                });
                o4l(false, false, 0, true);
                D4l('onRead');
            };
            g4l.__processSettings = function() {
                R4l = g4l.settings;
                D4l = g4l.trigger;
                X4l = R4l.multiline;
                B4l = 'mbsc-sc-itm-sel mbsc-ic mbsc-ic-' + R4l.checkIcon;
                v4l = [];
                h5l = {};
            };
            g4l.__init = function() {
                T4l = R4l.showScrollArrows;
                F4l = R4l.scroll3d && !x6K && !T4l;
                Q4l = R4l.height;
                u4l = F4l ? Math.round((Q4l - (Q4l * R4l.rows / 2 + 3) * 0.03) / 2) * 2 : Q4l;
                l4l = Math.round(R4l.rows * 1.8);
                s5l = 360 / (l4l * 2);
                if (T4l) {
                    R4l.rows = Math.max(3, R4l.rows);
                }
                R4l.cssClass = (R4l.cssClass || '') + ' mbsc-sc';
            };
            g4l._getItemValue = q5l;
            g4l._tempSelected = {};
            g4l._selected = {};
            if (!f5l) {
                g4l.init(Z5l);
            }
        };
        J5K.prototype = {
            _hasDef: true,
            _hasTheme: true,
            _hasLang: true,
            _hasPreset: true,
            _class: 'scroller',
            _defaults: m0K({}, p2K.prototype._defaults, {
                minWidth: 80,
                height: 40,
                rows: 3,
                multiline: 1,
                delay: 300,
                readonly: false,
                showLabel: true,
                setOnTap: false,
                wheels: [],
                preset: '',
                speedUnit: 0.0012,
                timeUnit: 0.08,
                checkIcon: 'checkmark',
                validate: function T8l() {},
                formatValue: function X8l(r8l) {
                    return r8l.join(' ');
                },
                parseValue: function a8l(t8l, p8l) {
                    var I8l = [],
                        E8l = [],
                        u8l = 0,
                        o8l, U8l;
                    if (t8l !== null && t8l !== undefined) {
                        I8l = (t8l + '').split(' ');
                    }
                    G2K.each(p8l.settings.wheels, function(q9l, c8l) {
                        G2K.each(c8l, function(s9l, N9l) {
                            U8l = N9l.data;
                            o8l = p8l._getItemValue(U8l[0]);
                            G2K.each(U8l, function(L9l, h9l) {
                                if (I8l[u8l] == p8l._getItemValue(h9l)) {
                                    o8l = p8l._getItemValue(h9l);
                                    return false;
                                }
                            });
                            E8l.push(o8l);
                            u8l++;
                        });
                    });
                    return E8l;
                }
            })
        };
        Z2K.classes.Scroller = J5K;
      
	  
	   (function(S3f) {
	 
        var W3f = Z2K,
            D3f = W3f.$,
            R0f = Q2K.adjustedDate,
            z0f = {
                separator: ' ',
                dateFormat: 'mm/dd/yy',
                dateDisplay: 'MMddyy',
                timeFormat: 'h:ii A',
                dayText: 'Day',
                monthText: 'Month',
                yearText: 'Year',
                hourText: 'Hours',
                minuteText: 'Minutes',
                ampmText: '&nbsp;',
                secText: 'Seconds',
                nowText: 'Now',
                todayText: 'Today'
            },
            N0f = function(f0f) {
                function j0f(T21, f21, r11, x21, F21, l21, C21, P21) {
                    var a21, q21, h11, K21, c21, H21, j11, b21, y21, I11, G11, e11, s11, D11, z21, w21, N21, S11, W11, R21, i21 = {},
                        g11 = T0f.getDate(x21, F21, l21),
                        n11 = ['a', 'h', 'i', 's'];
                    if (T21) {
                        for (j11 = 0; j11 < T21.length; j11++) {
                            G11 = T21[j11];
                            if (G11.start) {
                                G11.apply = false;
                                h11 = G11.d;
                                N21 = h11 + '';
                                S11 = N21.split('/');
                                if (h11 && (h11.getTime && x21 == T0f.getYear(h11) && F21 == T0f.getMonth(h11) && l21 == T0f.getDay(h11) || !N21.match(/w/i) && (S11[1] && l21 == S11[1] && F21 == S11[0] - 1 || !S11[1] && l21 == S11[0]) || N21.match(/w/i) && g11.getDay() == +N21.replace('w', ''))) {
                                    G11.apply = true;
                                    i21[g11] = true;
                                }
                            }
                        }
                        for (j11 = 0; j11 < T21.length; j11++) {
                            G11 = T21[j11];
                            a21 = 0;
                            w21 = 0;
                            b21 = w0f[r11];
                            y21 = q0f[r11];
                            D11 = true;
                            z21 = true;
                            q21 = false;
                            if (G11.start && (G11.apply || !G11.d && !i21[g11])) {
                                e11 = G11.start.split(':');
                                s11 = G11.end.split(':');
                                for (I11 = 0; I11 < 3; I11++) {
                                    if (e11[I11] === S3f) {
                                        e11[I11] = 0;
                                    }
                                    if (s11[I11] === S3f) {
                                        s11[I11] = 59;
                                    }
                                    e11[I11] = +e11[I11];
                                    s11[I11] = +s11[I11];
                                }
                                if (r11 == 'tt') {
                                    b21 = H0f(Math.round((new Date(g11).setHours(e11[0], e11[1], e11[2]) - new Date(g11).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                                    y21 = H0f(Math.round((new Date(g11).setHours(s11[0], s11[1], s11[2]) - new Date(g11).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                                } else {
                                    e11.unshift(e11[0] > 11 ? 1 : 0);
                                    s11.unshift(s11[0] > 11 ? 1 : 0);
                                    if (P0f) {
                                        if (e11[1] >= 12) {
                                            e11[1] = e11[1] - 12;
                                        }
                                        if (s11[1] >= 12) {
                                            s11[1] = s11[1] - 12;
                                        }
                                    }
                                    for (I11 = 0; I11 < f21; I11++) {
                                        if (F0f[I11] !== S3f) {
                                            W11 = H0f(e11[I11], c0f[n11[I11]], w0f[n11[I11]], q0f[n11[I11]]);
                                            R21 = H0f(s11[I11], c0f[n11[I11]], w0f[n11[I11]], q0f[n11[I11]]);
                                            K21 = 0;
                                            c21 = 0;
                                            H21 = 0;
                                            if (P0f && I11 == 1) {
                                                K21 = e11[0] ? 12 : 0;
                                                c21 = s11[0] ? 12 : 0;
                                                H21 = F0f[0] ? 12 : 0;
                                            }
                                            if (!D11) {
                                                W11 = 0;
                                            }
                                            if (!z21) {
                                                R21 = q0f[n11[I11]];
                                            }
                                            if ((D11 || z21) && (W11 + K21 < F0f[I11] + H21 && F0f[I11] + H21 < R21 + c21)) {
                                                q21 = true;
                                            }
                                            if (F0f[I11] != W11) {
                                                D11 = false;
                                            }
                                            if (F0f[I11] != R21) {
                                                z21 = false;
                                            }
                                        }
                                    }
                                    if (!P21) {
                                        for (I11 = f21 + 1; I11 < 4; I11++) {
                                            if (e11[I11] > 0) {
                                                a21 = c0f[r11];
                                            }
                                            if (s11[I11] < q0f[n11[I11]]) {
                                                w21 = c0f[r11];
                                            }
                                        }
                                    }
                                    if (!q21) {
                                        W11 = H0f(e11[f21], c0f[r11], w0f[r11], q0f[r11]) + a21;
                                        R21 = H0f(s11[f21], c0f[r11], w0f[r11], q0f[r11]) - w21;
                                        if (D11) {
                                            b21 = W11;
                                        }
                                        if (z21) {
                                            y21 = R21;
                                        }
                                    }
                                }
                                if (D11 || z21 || q21) {
                                    for (I11 = b21; I11 <= y21; I11 += c0f[r11]) {
                                        C21[I11] = !P21;
                                    }
                                }
                            }
                        }
                    }
                }

                function g0f(J11, O11, k11, V11, B11, u11, o11) {
                    var X11, v11, L11, Y11;
                    if (J11) {
                        for (v11 = 0; v11 < J11.length; v11++) {
                            X11 = J11[v11];
                            Y11 = X11 + '';
                            if (!X11.start) {
                                if (X11.getTime) {
                                    if (T0f.getYear(X11) == O11 && T0f.getMonth(X11) == k11) {
                                        u11[T0f.getDay(X11)] = o11;
                                    }
                                } else if (!Y11.match(/w/i)) {
                                    Y11 = Y11.split('/');
                                    if (Y11[1]) {
                                        if (Y11[0] - 1 == k11) {
                                            u11[Y11[1]] = o11;
                                        }
                                    } else {
                                        u11[Y11[0]] = o11;
                                    }
                                } else {
                                    Y11 = +Y11.replace('w', '');
                                    for (L11 = Y11 - V11; L11 < B11; L11 += 7) {
                                        if (L11 >= 0) {
                                            u11[L11 + 1] = o11;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                function s0f(M11, p11) {
                    var Q11, m11, Z11;
                    if (p11) {
                        for (m11 = 0; m11 < p11.length; m11++) {
                            Q11 = p11[m11];
                            Z11 = Q11 + '';
                            if (!Q11.start) {
                                if (Q11.getTime) {
                                    if (M11.getFullYear() == Q11.getFullYear() && M11.getMonth() == Q11.getMonth() && M11.getDate() == Q11.getDate()) {
                                        return true;
                                    }
                                } else if (!Z11.match(/w/i)) {
                                    Z11 = Z11.split('/');
                                    if (Z11[1]) {
                                        if (Z11[0] - 1 == M11.getMonth() && Z11[1] == M11.getDate()) {
                                            return true;
                                        }
                                    } else if (Z11[0] == M11.getDate()) {
                                        return true;
                                    }
                                } else {
                                    Z11 = +Z11.replace('w', '');
                                    if (Z11 == M11.getDay()) {
                                        return true;
                                    }
                                }
                            }
                        }
                    }
                    return false;
                }

                function x0f(t11, U11) {
                    if (!U11 && t11 < b0f) {
                        return false;
                    }
                    if (!U11 && t11 > a0f) {
                        return false;
                    }
                    if (s0f(t11, L0f)) {
                        return true;
                    }
                    if (s0f(t11, X0f)) {
                        return false;
                    }
                    return true;
                }

                function F51(F11, C11) {
                    var w11, a11, P11 = false,
                        i11 = false,
                        A11 = 0,
                        E11 = 0,
                        d11 = b0f ? C0f(E0f(b0f)) : -Infinity,
                        x11 = a0f ? C0f(E0f(a0f)) : Infinity;
                    if (x0f(F11)) {
                        return F11;
                    }
                    if (F11 < d11) {
                        F11 = d11;
                    }
                    if (F11 > x11) {
                        F11 = x11;
                    }
                    w11 = F11;
                    a11 = F11;
                    if (C11 !== 2) {
                        P11 = x0f(w11);
                        while (!P11 && w11 < x11) {
                            w11 = new Date(w11.getTime() + 1000 * 60 * 60 * 24);
                            P11 = x0f(w11);
                            A11++;
                        }
                    }
                    if (C11 !== 1) {
                        i11 = x0f(a11);
                        while (!i11 && a11 > d11) {
                            a11 = new Date(a11.getTime() - 1000 * 60 * 60 * 24);
                            i11 = x0f(a11);
                            E11++;
                        }
                    }
                    if (C11 === 1 && P11) {
                        return w11;
                    }
                    if (C11 === 2 && i11) {
                        return a11;
                    }
					
                    return E11 <= A11 && i11 ? a11 : w11;
                }

                function w51(q11) {
                    var l11, c11, K11, H11 = {};
                    if (q11.is('input')) {
                        switch (q11.attr('type')) {
                            case 'date':
                                l11 = 'yy-mm-dd';
                                break;
                            case 'datetime':
                                l11 = 'yy-mm-ddTHH:ii:ssZ';
                                break;
                            case 'datetime-local':
                                l11 = 'yy-mm-ddTHH:ii:ss';
                                break;
                            case 'month':
                                l11 = 'yy-mm';
                                H11.dateOrder = 'mmyy';
                                break;
                            case 'time':
                                l11 = 'HH:ii:ss';
                                break;
                        }
                        H11.format = l11;
                        c11 = q11.attr('min');
                        K11 = q11.attr('max');
                        if (c11) {
                            H11.min = Q2K.parseDate(l11, c11);
                        }
                        if (K11) {
                            H11.max = Q2K.parseDate(l11, K11);
                        }
                    }
                    return H11;
                }

                function a51(y11, b11) {
                    return b11 ? Math.floor(new Date(y11) / 86400000) : y11.getMonth() + 12 * (y11.getFullYear() - 1970);
                }

                function E0f(R11, f11) {
                    var z11, W51, N11 = ['y', 'm', 'd', 'a', 'h', 'i', 's', 'u', 'dd', 'tt'],
                        T11 = [];
                    if (R11 === null || R11 === S3f) {
                        return R11;
                    }
                    for (z11 = 0; z11 < N11.length; z11++) {
                        W51 = N11[z11];
                        if (y0f[W51] !== S3f) {
                            T11[y0f[W51]] = l0f[W51](R11);
                        }
                        if (f11) {
                            A0f[W51] = l0f[W51](R11);
                        }
                    }
                    return T11;
                }

                function C0f(n51) {
                    var G51, j51 = new Date(new Date().setHours(0, 0, 0, 0));
                    if (n51 === null) {
                        return n51;
                    }
                    if (y0f.dd !== S3f) {
                        G51 = n51[y0f.dd].split('-');
                        G51 = new Date(G51[0], G51[1] - 1, G51[2]);
                    }
                    if (y0f.tt !== S3f) {
                        G51 = G51 || j51;
                        G51 = new Date(G51.getTime() + n51[y0f.tt] % 86400 * 1000);
                    }
                    var g51 = K0f(n51, 'y', G51, j51),
                        h51 = K0f(n51, 'm', G51, j51),
                        D51 = Math.min(K0f(n51, 'd', G51, j51), T0f.getMaxDayOfMonth(g51, h51)),
                        S51 = K0f(n51, 'h', G51, j51);
                    return T0f.getDate(g51, h51, D51, P0f && K0f(n51, 'a', G51, j51) ? S51 + 12 : S51, K0f(n51, 'i', G51, j51), K0f(n51, 's', G51, j51), K0f(n51, 'u', G51, j51));
                }

                function K0f(e51, O51, s51, r51) {
                    var I51;
                    if (y0f[O51] !== S3f) {
                        I51 = +e51[y0f[O51]];
                        if (!isNaN(I51)) {
                            return I51;
                        }
                    }
                    if (s51) {
                        return l0f[O51](s51);
                    }
                    if (A0f[O51] !== S3f) {
                        return A0f[O51];
                    }
                    return l0f[O51](r51);
                }

                function T51(V51) {
                    return H0f(Math.round((V51.getTime() - new Date(V51).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                }

                function W0f(B51) {
                    return B51.getFullYear() + '-' + z51(B51.getMonth() + 1) + '-' + z51(B51.getDate());
                }

                function f51(k51) {
                    return k51.getHours() > 11 ? 1 : 0;
                }

                function y51(J51) {
                    return J51.getMilliseconds();
                }

                function b51(o51) {
                    return H0f(o51.getSeconds(), Z0f, u0f, B0f);
                }

                function l51(u51) {
                    return H0f(u51.getMinutes(), i0f, U0f, V0f);
                }

                function H51(v51) {
                    var L51 = v51.getHours();
                    L51 = P0f && L51 >= 12 ? L51 - 12 : L51;
                    return H0f(L51, t0f, m0f, I0f);
                }

                function q51(X51) {
                    return T0f.getDay(X51);
                }

                function c51(Y51) {
                    return T0f.getMonth(Y51);
                }

                function K51(p51) {
                    return T0f.getYear(p51);
                }

                function J0f(M51, Q51, m51) {
                    return Math.floor((m51 - Q51) / M51) * M51 + Q51;
                }

                function H0f(t51, A51, U51, Z51) {
                    return Math.min(Z51, Math.floor(t51 / A51) * A51 + U51);
                }

                function R51(C51) {
                    var d51, x51, P51, E51 = [];
                    if (C51) {
                        for (d51 = 0; d51 < C51.length; d51++) {
                            x51 = C51[d51];
                            if (x51.start && x51.start.getTime) {
                                P51 = new Date(x51.start);
                                while (P51 <= x51.end) {
                                    E51.push(R0f(P51.getFullYear(), P51.getMonth(), P51.getDate()));
                                    P51.setDate(P51.getDate() + 1);
                                }
                            } else {
                                E51.push(x51);
                            }
                        }
                        return E51;
                    }
                    return C51;
                }
				
				function ai(a) {
					return {
						value: a,
						display: (/yy/i.test(Y0f) ? a : (a + '').substr(2, 2)) + (T0f.yearSuffix || '')
					};
				}
				 
				function ad(a) {
					return a;
				}
				
				function ak(b) {
					var a = /d/i.test(b);
					
					return {
						label: '',
						cssClass: 'mbsc-dt-whl-date',
						min: (b0f) ? a51(W0f(b0f), a) : -Infinity,
						max: (a0f) ? a51(W0f(a0f), a) : Infinity,
						data: function(e) {
							var g = new Date(new Date().setHours(0, 0, 0, 0)),
								d = a ? new Date(e * 8.64e7) : new Date(1970, e, 1);
							if (a) {
								d = new Date(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());
							}
							return {
								invalid: a && !x0f(d, true),
								value: W0f(d),
								display: g.getTime() == d.getTime() ? T0f.todayText : Q2K.formatDate(b, d, T0f)
							};
						},
						getIndex: function(b) {
							return a51(b, a);
						}
					};
				}
				
				function ab(d) {
					var a, b, g, e = [];
					if (/s/i.test(d)) {
						b = z;
					} else if (/i/i.test(d)) {
						b = i0f * 60;
					} else if (/h/i.test(d)) {
						b = t0f * 3600;
					}
					Q0f = c0f.tt = b;
					for (a = 0; a < 86400; a += b) {
						g = new Date(new Date().setHours(0, 0, 0, 0) + a * 1000);
						e.push({
							value: a,
							display: Q2K.formatDate(d, g, T0f)
						});
					}
					return {
						label: '',
						cssClass: 'mbsc-dt-whl-time',
						data: e
					};
				}

				 function a6() {
						var p, s, c, l, b, g, e, n, d = 0,
							o = [],
							m = [],
							i = [];
						if (M0f.match(/date/i)) {

							p = SS0f.split(/\|/.test(SS0f) ? '|' : '');
							for (l = 0; l < p.length; l++) {
								c = p[l];
								g = 0;
								if (c.length) {
									if (/y/i.test(c)) {
										g++;
									}
									if (/m/i.test(c)) {
										g++;
									}
									if (/d/i.test(c)) {
										g++;
									}
									

									if (g > 1 && y0f.dd === S3f) {
										y0f.dd = d;
										d++;		
										m.push(ak(c));
										i = m;
										a2 = true;
									} else if (/y/i.test(c) && y0f.y === S3f) {
										y0f.y = d;
										d++;
										
										m.push({
											cssClass: 'mbsc-dt-whl-y',
											label: T0f.yearText,
											min: (b0f) ? T0f.getYear(b0f) : -Infinity,
											max: (a0f) ? T0f.getYear(a0f) : Infinity,
											data: ai,
											getIndex: ad
										});
										
									} else if (/m/i.test(c) && y0f.m === S3f) {
										y0f.m = d;
										e = [];
										d++;
										for (b = 0; b < 12; b++) {
											n = Y0f.replace(/[dy]/gi, '').replace(/mm/, z51(b + 1) + (T0f.monthSuffix || '')).replace(/m/, b + 1 + (T0f.monthSuffix || ''));
											e.push({
												value: b,
												display: /MM/.test(n) ? n.replace(/MM/, '<span class="mbsc-dt-month">' + T0f.monthNames[b] + '</span>') : n.replace(/M/, '<span class="mbsc-dt-month">' + T0f.monthNamesShort[b] + '</span>')
											});
										}
										m.push({
											cssClass: 'mbsc-dt-whl-m',
											label: T0f.monthText,
											data: e
										});
									} else if (/d/i.test(c) && y0f.d === S3f) {
										y0f.d = d;
										e = [];
										d++;
										for (b = 1; b < 32; b++) {
											e.push({
												value: b,
												display: (/dd/i.test(Y0f) ? z51(b) : b) + (T0f.daySuffix || '')
											});
										}
										m.push({
											cssClass: 'mbsc-dt-whl-d',
											label: T0f.dayText,
											data: e
										});
									}
								}
							}
							o.push(m);
						}
						if (M0f.match(/time/i)) {
							s = h0f.split(/\|/.test(h0f) ? '|' : '');
							for (l = 0; l < s.length; l++) {
								c = s[l];
								g = 0;
								if (c.length) {
									if (/h/i.test(c)) {
										g++;
									}
									if (/i/i.test(c)) {
										g++;
									}
									if (/s/i.test(c)) {
										g++;
									}
									if (/a/i.test(c)) {
										g++;
									}
								}
								if (g > 1 && y0f.tt === S3f) {
									y0f.tt = d;
									d++;
									i.push(ab(c));
								} else if (/h/i.test(c) && y0f.h === S3f) {
									e = [];
									y0f.h = d;
									d++;
									for (b = m0f; b < (P0f ? 12 : 24); b += t0f) {
										e.push({
											value: b,
											display: P0f && b === 0 ? 12 : /hh/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-h',
										label: T0f.hourText,
										data: e
									});
								} else if (/i/i.test(c) && y0f.i === S3f) {
									e = [];
									y0f.i = d;
									d++;
									for (b = U0f; b < 60; b += i0f) {
										e.push({
											value: b,
											display: /ii/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-i',
										label: T0f.minuteText,
										data: e
									});
								} else if (/s/i.test(c) && y0f.s === S3f) {
									e = [];
									y0f.s = d;
									d++;
									for (b = O; b < 60; b += z) {
										e.push({
											value: b,
											display: /ss/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-s',
										label: T0f.secText,
										data: e
									});
								} else if (/a/i.test(c) && y0f.a === S3f) {
									y0f.a = d;
									d++;
									i.push({
										cssClass: 'mbsc-dt-whl-a',
										label: T0f.ampmText,
										data: /A/.test(c) ? [{
											value: 0,
											display: T0f.amText.toUpperCase()
										}, {
											value: 1,
											display: T0f.pmText.toUpperCase()
										}] : [{
											value: 0,
											display: T0f.amText
										}, {
											value: 1,
											display: T0f.pmText
										}]
									});
								}
							}
							if (i != m) {
								o.push(i);
							}
						}
						return o;
					}
				

                function z51(i51) {
                    return i51 < 10 ? '0' + i51 : i51;
                }

                var Q0f, r0f, D0f, y0f = {},
                    A0f = {},
                    F0f = [],
                    k0f = w51(D3f(this)),
                    e0f = D3f.extend({}, f0f.settings),
                    T0f = D3f.extend(f0f.settings, W3f.util.datetime.defaults, z0f, k0f, e0f),
                    X0f = R51(T0f.invalid),
                    L0f = R51(T0f.valid),
                    M0f = T0f.preset,
                    p0f = M0f == 'datetime' ? T0f.dateFormat + T0f.separator + T0f.timeFormat : M0f == 'time' ? T0f.timeFormat : T0f.dateFormat,
                    O0f = k0f.format || p0f,
					SS0f = T0f.dateWheels || T0f.dateFormat,
                    h0f = T0f.timeWheels || T0f.timeFormat,
                    Y0f = T0f.dateWheels || T0f.dateDisplay,
                    G0f = h0f,
                    n0f = T0f.baseTheme || T0f.theme,
                    b0f = T0f.min,
                    a0f = T0f.max,
                    o0f = /time/i.test(M0f),
                    P0f = /h/.test(G0f),
                    S0f = /D/.test(Y0f),
                    d0f = T0f.steps || {},
                    t0f = d0f.hour || T0f.stepHour || 1,
                    i0f = d0f.minute || T0f.stepMinute || 1,
                    Z0f = d0f.second || T0f.stepSecond || 1,
                    v0f = d0f.zeroBased,
                    m0f = v0f || !b0f ? 0 : b0f.getHours() % t0f,
                    U0f = v0f || !b0f ? 0 : b0f.getMinutes() % i0f,
                    u0f = v0f || !b0f ? 0 : b0f.getSeconds() % Z0f,
                    I0f = J0f(t0f, m0f, P0f ? 11 : 23),
                    V0f = J0f(i0f, U0f, 59),
                    B0f = J0f(i0f, U0f, 59),
                    w0f = {
                        y: b0f ? b0f.getFullYear() : -Infinity,
                        m: 0,
                        d: 1,
                        h: m0f,
                        i: U0f,
                        s: u0f,
                        a: 0,
                        tt: 0
                    },
                    q0f = {
                        y: a0f ? a0f.getFullYear() : Infinity,
                        m: 11,
                        d: 31,
                        h: I0f,
                        i: V0f,
                        s: B0f,
                        a: 1,
                        tt: 86400
                    },
                    c0f = {
                        y: 1,
                        m: 1,
                        d: 1,
                        h: t0f,
                        i: i0f,
                        s: Z0f,
                        a: 1,
                        tt: 1
                    },
                    N51 = {
                        'android-holo': 40,
                        bootstrap: 46,
                        ios: 50,
                        jqm: 46,
                        material: 46,
                        mobiscroll: 46,
                        wp: 50
                    },
                    l0f = {
                        y: K51,
                        m: c51,
                        d: q51,
                        h: H51,
                        i: l51,
                        s: b51,
                        u: y51,
                        a: f51,
                        dd: W0f,
                        tt: T51
                    };
                f0f.getDate = f0f.getVal = function(d21) {
                    return f0f._hasValue || d21 ? C0f(f0f.getArrayVal(d21)) : null;
                };
                f0f.setDate = function(E21, A21, t21, U21, Z21) {
                    f0f.setArrayVal(E0f(E21), A21, Z21, U21, t21);
                };

				D0f = a6();
                f0f.format = p0f;
                f0f.order = y0f;
				
                f0f.handlers.now = function() {
                    f0f.setDate(new Date(), f0f.live, 1000, true, true);
                };
                f0f.buttons.now = {
                    text: T0f.nowText,
                    icon: T0f.nowIcon,
                    handler: 'now'
                };
                return {
                    minWidth: r0f && o0f ? N51[n0f] : S3f,
                    compClass: 'mbsc-dt',
                    wheels: D0f,
                    headerText: T0f.headerText ? function() {
                        return Q2K.formatDate(p0f, C0f(f0f.getArrayVal(true)), T0f);
                    } : false,
                    formatValue: function(M21) {
                        return Q2K.formatDate(O0f, C0f(M21), T0f);
                    },
                    parseValue: function(Q21) {
                        if (!Q21) {
                            A0f = {};
                        }
                        return E0f(Q21 ? Q2K.parseDate(O0f, Q21, T0f) : T0f.defaultValue && T0f.defaultValue.getTime ? T0f.defaultValue : new Date(), !!Q21 && !!Q21.getTime);
                    },
                    validate: function(s21) {
                        var m21, v21, J21, r21, G21 = s21.values,
                            V21 = s21.index,
                            e21 = s21.direction,
                            L21 = f0f.settings.wheels[0][y0f.d],
                            X21 = F51(C0f(G21), e21),
                            O21 = E0f(X21),
                            u21 = [],
                            I21 = {},
                            Y21 = l0f.y(X21),
                            p21 = l0f.m(X21),
                            o21 = T0f.getMaxDayOfMonth(Y21, p21),
                            k21 = true,
                            B21 = true;
                        D3f.each(['dd', 'y', 'm', 'd', 'tt', 'a', 'h', 'i', 's'], function(W21, n21) {
                            if (y0f[n21] !== S3f) {
                                var g21 = w0f[n21],
                                    h21 = q0f[n21],
                                    j21 = l0f[n21](X21);
                                u21[y0f[n21]] = [];
                                if (k21 && b0f) {
                                    g21 = l0f[n21](b0f);
                                }
                                if (B21 && a0f) {
                                    h21 = l0f[n21](a0f);
                                }
                                if (n21 != 'y' && n21 != 'dd') {
                                    for (v21 = w0f[n21]; v21 <= q0f[n21]; v21 += c0f[n21]) {
                                        if (v21 < g21 || v21 > h21) {
                                            u21[y0f[n21]].push(v21);
                                        }
                                    }
                                }
                                if (j21 < g21) {
                                    j21 = g21;
                                }
                                if (j21 > h21) {
                                    j21 = h21;
                                }
                                if (k21) {
                                    k21 = j21 == g21;
                                }
                                if (B21) {
                                    B21 = j21 == h21;
                                }
                                if (n21 == 'd') {
                                    var D21 = T0f.getDate(Y21, p21, 1).getDay(),
                                        S21 = {};
                                    g0f(X0f, Y21, p21, D21, o21, S21, 1);
                                    g0f(L0f, Y21, p21, D21, o21, S21, 0);
                                    D3f.each(S21, function(R61, z61) {
                                        if (z61) {
                                            u21[y0f[n21]].push(R61);
                                        }
                                    });
                                }
                            }
                        });
                        if (o0f) {
                            D3f.each(['a', 'h', 'i', 's', 'tt'], function(f61, N61) {
                                var b61 = l0f[N61](X21),
                                    y61 = l0f.d(X21),
                                    T61 = {};
                                if (y0f[N61] !== S3f) {
                                    j0f(X0f, f61, N61, Y21, p21, y61, T61, 0);
                                    j0f(L0f, f61, N61, Y21, p21, y61, T61, 1);
                                    D3f.each(T61, function(l61, H61) {
                                        if (H61) {
                                            u21[y0f[N61]].push(l61);
                                        }
                                    });
                                    F0f[f61] = f0f.getValidValue(y0f[N61], b61, e21, T61);
                                }
                            });
                        }
                        if (L21 && (L21._length !== o21 || S0f && (V21 === S3f || V21 === y0f.y || V21 === y0f.m))) {
                            I21[y0f.d] = L21;
                            L21.data = [];
                            for (m21 = 1; m21 <= o21; m21++) {
                                r21 = T0f.getDate(Y21, p21, m21).getDay();
                                J21 = Y0f.replace(/[my]/gi, '').replace(/dd/, (m21 < 10 ? '0' + m21 : m21) + (T0f.daySuffix || '')).replace(/d/, m21 + (T0f.daySuffix || ''));
                                L21.data.push({
                                    value: m21,
                                    display: J21.match(/DD/) ? J21.replace(/DD/, '<span class="mbsc-dt-day">' + T0f.dayNames[r21] + '</span>') : J21.replace(/D/, '<span class="mbsc-dt-day">' + T0f.dayNamesShort[r21] + '</span>')
                                });
                            }
                            f0f._tempWheelArray[y0f.d] = O21[y0f.d];
                            f0f.changeWheel(I21);
                        }
                        return {
                            disabled: u21,
                            valid: O21
                        };
                    }
                };
            };
        D3f.each(['date', 'time', 'datetime'], function(c61, q61) {
            W3f.presets.scroller[q61] = N0f;
        });
}());

	  
        var M2K = Z2K.$;
        var Z5K = Z2K.presets.scroller;
        var Z4K = Z2K.classes;
        var C0K = Z2K.util;
        var x0K = C0K.datetime.adjustedDate;
        var d1K = C0K.jsPrefix;
        var S5K = C0K.testTouch;
        var B0K = C0K.getCoord;
        var Y4K = C0K.animEnd;
        var O5K = new Date();
        var n1K = {
            min: new Date(O5K.getFullYear() - 100, 0, 1),
            max: new Date(O5K.getFullYear() + 1, 11, 31, 23, 59, 59),
            controls: ['calendar'],
            firstDay: 0,
            weekDays: 'short',
            maxMonthWidth: 170,
            months: 1,
            preMonths: 1,
            highlight: true,
            outerMonthChange: true,
            quickNav: true,
            yearChange: true,
            todayClass: 'mbsc-cal-today',
            btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left6',
            btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right6',
            dateText: 'Date',
            timeText: 'Time',
            calendarText: 'Calendar',
            todayText: 'Today',
            prevMonthText: 'Previous Month',
            nextMonthText: 'Next Month',
            prevYearText: 'Previous Year',
            nextYearText: 'Next Year'
        };
        Z5K.calbase = function(d0T) {
            function B5T(z5T) {
                var y5T;
                E0T = M2K(this);
                p4T = false;
                if (z5T.type != 'keydown') {
                    b5T = B0K(z5T, 'X');
                    g5T = B0K(z5T, 'Y');
                    y5T = S5K(z5T, this);
                } else {
                    y5T = z5T.keyCode === 32;
                }
                if (!T0T && y5T && !E0T.hasClass('mbsc-fr-btn-d')) {
                    T0T = true;
                    setTimeout(k5T, 100);
                    if (z5T.type == 'mousedown') {
                        M2K(document).on('mousemove', Z5T).on('mouseup', C5T);
                    }
                }
            }

            function Z5T(T5T) {
                if (Math.abs(b5T - B0K(T5T, 'X')) > 7 || Math.abs(g5T - B0K(T5T, 'Y')) > 7) {
                    T0T = false;
                    E0T.removeClass('mbsc-fr-btn-a');
                }
            }

            function C5T(X5T) {
                if (X5T.type == 'touchend') {
                    X5T.preventDefault();
                }
                if (E0T && !p4T) {
                    k5T();
                }
                T0T = false;
                if (X5T.type == 'mouseup') {
                    M2K(document).off('mousemove', Z5T).off('mouseup', C5T);
                }
            }

            function k5T() {
                p4T = true;
                if (E0T.hasClass('mbsc-cal-prev-m')) {
                    s5T();
                } else if (E0T.hasClass('mbsc-cal-next-m')) {
                    L5T();
                } else if (E0T.hasClass('mbsc-cal-prev-y')) {
                    P5T(E0T);
                } else if (E0T.hasClass('mbsc-cal-next-y')) {
                    J5T(E0T);
                }
            }

            function l5T(r5T) {
                if (r5T < x0K(m4T.getFullYear(), m4T.getMonth(), m4T.getDate())) {
                    return false;
                }
                if (r5T > F5T) {
                    return false;
                }
                return A5T[r5T] === undefined || m5T[r5T] !== undefined;
            }

            function O5T(c5T, E5T, o5T) {
                var u5T, t5T, a5T, I5T, p5T = {},
                    U5T = g0T + l4T;
                if (c5T) {
                    M2K.each(c5T, function(L6T, q6T) {
                        u5T = q6T.d || q6T.start || q6T;
                        t5T = u5T + '';
                        if (q6T.start && q6T.end) {
                            I5T = new Date(q6T.start);
                            while (I5T <= q6T.end) {
                                a5T = x0K(I5T.getFullYear(), I5T.getMonth(), I5T.getDate());
                                p5T[a5T] = p5T[a5T] || [];
                                p5T[a5T].push(q6T);
                                I5T.setDate(I5T.getDate() + 1);
                            }
                        } else if (u5T.getTime) {
                            a5T = x0K(u5T.getFullYear(), u5T.getMonth(), u5T.getDate());
                            p5T[a5T] = p5T[a5T] || [];
                            p5T[a5T].push(q6T);
                        } else if (!t5T.match(/w/i)) {
                            t5T = t5T.split('/');
                            if (t5T[1]) {
                                if (o5T + U5T >= 11) {
                                    a5T = m0T.getDate(E5T + 1, t5T[0] - 1, t5T[1]);
                                    p5T[a5T] = p5T[a5T] || [];
                                    p5T[a5T].push(q6T);
                                }
                                if (o5T - U5T <= 1) {
                                    a5T = m0T.getDate(E5T - 1, t5T[0] - 1, t5T[1]);
                                    p5T[a5T] = p5T[a5T] || [];
                                    p5T[a5T].push(q6T);
                                }
                                a5T = m0T.getDate(E5T, t5T[0] - 1, t5T[1]);
                                p5T[a5T] = p5T[a5T] || [];
                                p5T[a5T].push(q6T);
                            } else {
                                for (t0T = 0; t0T < r0T; t0T++) {
                                    a5T = m0T.getDate(E5T, o5T - g0T - Q0T + t0T, t5T[0]);
                                    if (m0T.getDay(a5T) == t5T[0]) {
                                        p5T[a5T] = p5T[a5T] || [];
                                        p5T[a5T].push(q6T);
                                    }
                                }
                            }
                        } else {
                            var h6T = +t5T.replace('w', ''),
                                N6T = 0,
                                s6T = m0T.getDate(E5T, o5T - g0T - Q0T, 1).getDay();
                            if (m0T.firstDay - s6T + 1 > 1) {
                                N6T = 7;
                            }
                            for (t0T = 0; t0T < r0T * 5; t0T++) {
                                a5T = m0T.getDate(E5T, o5T - g0T - Q0T, t0T * 7 - N6T - s6T + 1 + h6T);
                                p5T[a5T] = p5T[a5T] || [];
                                p5T[a5T].push(q6T);
                            }
                        }
                    });
                }
                return p5T;
            }

            function d5T(n6T, i6T) {
                A5T = O5T(m0T.invalid, n6T, i6T);
                m5T = O5T(m0T.valid, n6T, i6T);
                d0T.onGenMonth(n6T, i6T);
            }

            function Q5T(w6T, K6T, Z6T, O6T, M6T, S6T, C6T) {
                var x6T = '<div class="mbsc-cal-h mbsc-cal-sc-c mbsc-cal-' + w6T + '-c ' + (m0T.calendarClass || '') + '"><div class="mbsc-cal-sc"><div class="mbsc-cal-sc-p"><div class="mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-row">';
                for (A0T = 1; A0T <= K6T; A0T++) {
                    if (A0T <= 12 || A0T > Z6T) {
                        x6T += '<div class="mbsc-cal-sc-m-cell mbsc-cal-sc-cell mbsc-cal-sc-empty"><div class="mbsc-cal-sc-cell-i">&nbsp;</div></div>';
                    } else {
                        x6T += '<div tabindex="0" role="button"' + (S6T ? ' aria-label="' + S6T[A0T - 13] + '"' : '') + ' class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-cal-sc-m-cell mbsc-cal-sc-cell mbsc-cal-' + w6T + '-s" data-val=' + (O6T + A0T - 13) + '><div class="mbsc-cal-sc-cell-i mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-cell">' + (C6T ? C6T[A0T - 13] : O6T + A0T - 13 + M6T) + '</div></div></div>';
                    }
                    if (A0T < K6T) {
                        if (A0T % 12 === 0) {
                            x6T += '</div></div></div><div class="mbsc-cal-sc-p" style="' + (l0T ? 'top' : U0T ? 'right' : 'left') + ':' + Math.round(A0T / 12) * 100 + '%"><div class="mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-row">';
                        } else if (A0T % 3 === 0) {
                            x6T += '</div><div class="mbsc-cal-sc-row">';
                        }
                    }
                }
                x6T += '</div></div></div></div></div>';
                return x6T;
            }

            function b4T(T6T, X6T) {
                var j6T, Q6T, m6T, f6T, W6T, z6T, k6T, e6T, G6T, H6T, A6T, g6T, d6T, y6T, F6T, P6T, V6T = 1,
                    D6T = 0,
                    l6T = m0T.getDate(T6T, X6T, 1),
                    B6T = m0T.getYear(l6T),
                    b6T = m0T.getMonth(l6T),
                    J6T = m0T.defaultValue === null && !d0T._hasValue ? null : d0T.getDate(true),
                    R6T = m0T.getDate(B6T, b6T, 1).getDay(),
                    Y6T = '<div class="mbsc-cal-table">',
                    v6T = '<div class="mbsc-cal-week-nr-c">';
                if (m0T.firstDay - R6T + 1 > 1) {
                    D6T = 7;
                }
                for (P6T = 0; P6T < 42; P6T++) {
                    F6T = P6T + m0T.firstDay - D6T;
                    j6T = m0T.getDate(B6T, b6T, F6T - R6T + 1);
                    m6T = j6T.getFullYear();
                    f6T = j6T.getMonth();
                    W6T = j6T.getDate();
                    z6T = m0T.getMonth(j6T);
                    k6T = m0T.getDay(j6T);
                    y6T = m0T.getMaxDayOfMonth(m6T, f6T);
                    e6T = m6T + '-' + f6T + '-' + W6T;
                    G6T = M2K.extend({
                        valid: l5T(j6T),
                        selected: J6T && J6T.getFullYear() === m6T && J6T.getMonth() === f6T && J6T.getDate() === W6T
                    }, d0T.getDayProps(j6T, J6T));
                    H6T = G6T.valid;
                    A6T = G6T.selected;
                    Q6T = G6T.cssClass;
                    g6T = new Date(j6T).setHours(12, 0, 0, 0) === new Date().setHours(12, 0, 0, 0);
                    d6T = z6T !== b6T;
                    o4T[e6T] = G6T;
                    if (P6T % 7 === 0) {
                        Y6T += (P6T ? '</div>' : '') + '<div class="mbsc-cal-row' + (m0T.highlight && J6T && J6T - j6T >= 0 && J6T - j6T < 1000 * 60 * 60 * 24 * 7 ? ' mbsc-cal-week-hl' : '') + '">';
                    }
                    if (j4T && j6T.getDay() == 1) {
                        if (j4T == 'month' && d6T && V6T > 1) {
                            V6T = W6T == 1 ? 1 : 2;
                        } else if (j4T == 'year') {
                            V6T = m0T.getWeekNumber(j6T);
                        }
                        v6T += '<div class="mbsc-cal-week-nr"><div class="mbsc-cal-week-nr-i">' + V6T + '</div></div>';
                        V6T++;
                    }
                    Y6T += '<div role="button" tabindex="-1"' + ' aria-label="' + (g6T ? m0T.todayText + ', ' : '') + m0T.dayNames[j6T.getDay()] + ', ' + m0T.monthNames[z6T] + ' ' + k6T + ' ' + (G6T.ariaLabel ? ', ' + G6T.ariaLabel : '') + '"' + (d6T && !y4T ? ' aria-hidden="true"' : '') + (A6T ? ' aria-selected="true"' : '') + (H6T ? '' : ' aria-disabled="true"') + ' data-day="' + F6T % 7 + '"' + ' data-full="' + e6T + '"' + 'class="mbsc-cal-day ' + (m0T.dayClass || '') + (A6T ? ' mbsc-cal-day-sel' : '') + (g6T ? ' ' + m0T.todayClass : '') + (Q6T ? ' ' + Q6T : '') + (k6T == 1 ? ' mbsc-cal-day-first' : '') + (k6T == y6T ? ' mbsc-cal-day-last' : '') + (d6T ? ' mbsc-cal-day-diff' : '') + (H6T ? ' mbsc-cal-day-v mbsc-fr-btn-e mbsc-fr-btn-nhl' : ' mbsc-cal-day-inv') + '"><div class="mbsc-cal-day-i ' + (A6T ? s4T : '') + ' ' + (m0T.innerDayClass || '') + '">' + '<div class="mbsc-cal-day-fg">' + k6T  + '</div>' + (G6T.markup || '') + '<div class="mbsc-cal-day-frame"></div></div></div>';
                }
                Y6T += '</div></div>' + v6T + '</div>';
                return Y6T;
            }

            function K5T(a6T, p6T, u6T) {
                var t6T = m0T.getDate(a6T, p6T, 1),
                    r6T = m0T.getYear(t6T),
                    E6T = m0T.getMonth(t6T),
                    I6T = r6T + e4T;
                if (q4T) {
                    if (h4T) {
                        h4T.removeClass('mbsc-cal-sc-sel').removeAttr('aria-selected').find('.mbsc-cal-sc-cell-i').removeClass(s4T);
                    }
                    if (F4T) {
                        F4T.removeClass('mbsc-cal-sc-sel').removeAttr('aria-selected').find('.mbsc-cal-sc-cell-i').removeClass(s4T);
                    }
                    h4T = M2K('.mbsc-cal-year-s[data-val="' + r6T + '"]', f0T).addClass('mbsc-cal-sc-sel').attr('aria-selected', 'true');
                    F4T = M2K('.mbsc-cal-month-s[data-val="' + E6T + '"]', f0T).addClass('mbsc-cal-sc-sel').attr('aria-selected', 'true');
                    h4T.find('.mbsc-cal-sc-cell-i').addClass(s4T);
                    F4T.find('.mbsc-cal-sc-cell-i').addClass(s4T);
                    if (X0T) {
                        X0T.scroll(h4T, u6T);
                    }
                    M2K('.mbsc-cal-month-s', f0T).removeClass('mbsc-fr-btn-d');
                    if (r6T === G4T) {
                        for (A0T = 0; A0T < f5T; A0T++) {
                            M2K('.mbsc-cal-month-s[data-val="' + A0T + '"]', f0T).addClass('mbsc-fr-btn-d');
                        }
                    }
                    if (r6T === a4T) {
                        for (A0T = V5T + 1; A0T <= 12; A0T++) {
                            M2K('.mbsc-cal-month-s[data-val="' + A0T + '"]', f0T).addClass('mbsc-fr-btn-d');
                        }
                    }
                }
                if (P4T.length == 1) {
                    P4T.attr('aria-label', r6T).html(I6T);
                }
                for (A0T = 0; A0T < W0T; ++A0T) {
                    t6T = m0T.getDate(a6T, p6T - Q0T + A0T, 1);
                    r6T = m0T.getYear(t6T);
                    E6T = m0T.getMonth(t6T);
                    I6T = r6T + e4T;
                    M2K(E4T[A0T]).attr('aria-label', m0T.monthNames[E6T] + (x4T ? '' : ' ' + r6T)).html((!x4T && D4T < v4T ? I6T + ' ' : '') + g4T[E6T] + (!x4T && D4T > v4T ? ' ' + I6T : ''));
                    if (P4T.length > 1) {
                        M2K(P4T[A0T]).html(I6T);
                    }
                }
                if (m0T.getDate(a6T, p6T - Q0T - 1, 1) < y0T) {
                    T4T(M2K('.mbsc-cal-prev-m', f0T));
                } else {
                    B4T(M2K('.mbsc-cal-prev-m', f0T));
                }
                if (m0T.getDate(a6T, p6T + W0T - Q0T, 1) > B0T) {
                    T4T(M2K('.mbsc-cal-next-m', f0T));
                } else {
                    B4T(M2K('.mbsc-cal-next-m', f0T));
                }
                if (m0T.getDate(a6T, p6T, 1).getFullYear() <= y0T.getFullYear()) {
                    T4T(M2K('.mbsc-cal-prev-y', f0T));
                } else {
                    B4T(M2K('.mbsc-cal-prev-y', f0T));
                }
                if (m0T.getDate(a6T, p6T, 1).getFullYear() >= B0T.getFullYear()) {
                    T4T(M2K('.mbsc-cal-next-y', f0T));
                } else {
                    B4T(M2K('.mbsc-cal-next-y', f0T));
                }
            }

            function B4T(o6T) {
                o6T.removeClass(S5T).find('.mbsc-cal-btn-txt').removeAttr('aria-disabled');
            }

            function T4T(U6T) {
                U6T.addClass(S5T).find('.mbsc-cal-btn-txt').attr('aria-disabled', 'true');
            }

            function D5T(c6T) {
                d0T.trigger('onDayHighlight', {
                    date: c6T
                });
                if (m0T.highlight) {
                    M2K('.mbsc-cal-day-sel .mbsc-cal-day-i', D0T).removeClass(s4T);
                    M2K('.mbsc-cal-day-sel', D0T).removeClass('mbsc-cal-day-sel').removeAttr('aria-selected');
                    M2K('.mbsc-cal-week-hl', D0T).removeClass('mbsc-cal-week-hl');
                    if (m0T.defaultValue !== null || d0T._hasValue) {
                        M2K('.mbsc-cal-day[data-full="' + c6T.getFullYear() + '-' + c6T.getMonth() + '-' + c6T.getDate() + '"]', D0T).addClass('mbsc-cal-day-sel').attr('aria-selected', 'true').find('.mbsc-cal-day-i').addClass(s4T).closest('.mbsc-cal-row').addClass('mbsc-cal-week-hl');
                    }
                }
            }

            function w5T(q1T, n1T) {
                if (z0T && (a0T === 'calendar' || n1T)) {
                    var L1T, s1T, h1T = m0T.getDate(R0T, b0T, 1),
                        N1T = Math.abs((m0T.getYear(q1T) - m0T.getYear(h1T)) * 12 + m0T.getMonth(q1T) - m0T.getMonth(h1T));
                    if (d0T.needsSlide && N1T) {
                        R0T = m0T.getYear(q1T);
                        b0T = m0T.getMonth(q1T);
                        if (q1T > h1T) {
                            s1T = N1T > g0T - Q0T + W0T - 1;
                            b0T -= s1T ? 0 : N1T - g0T;
                            L1T = 'next';
                        } else if (q1T < h1T) {
                            s1T = N1T > g0T + Q0T;
                            b0T += s1T ? 0 : N1T - g0T;
                            L1T = 'prev';
                        }
                        c0T(R0T, b0T, L1T, Math.min(N1T, g0T), s1T, true);
                    }
                    if (!n1T) {
                        n4T = q1T;
                        D5T(q1T);
                    }
                    d0T.needsSlide = true;
                }
            }

            function d4T(i1T, x1T, w1T) {
                if (!w1T) {
                    d0T.trigger('onMonthLoading', {
                        year: i1T,
                        month: x1T
                    });
                }
                d5T(i1T, x1T);
                for (A0T = 0; A0T < r0T; A0T++) {
                    e0T[A0T].html(b4T(i1T, x1T - Q0T - g0T + A0T));
                }
                e5T();
                z4T = undefined;
                d0T.trigger('onMonthLoaded', {
                    year: i1T,
                    month: x1T
                });
            }

            function x5T(S1T, C1T) {
                var K1T = g0T,
                    O1T = g0T;
                while (O1T && m0T.getDate(S1T, C1T + O1T + W0T - Q0T - 1, 1) > B0T) {
                    O1T--;
                }
                while (K1T && m0T.getDate(S1T, C1T - K1T - Q0T, 1) < y0T) {
                    K1T--;
                }
                M2K.extend(L4T.settings, {
                    contSize: W0T * F0T,
                    snap: F0T,
                    minScroll: I0T - (U0T ? K1T : O1T) * F0T,
                    maxScroll: I0T + (U0T ? O1T : K1T) * F0T
                });
                L4T.refresh();
            }

            function e5T() {
                if (j4T) {
                    Y5T.html(M2K('.mbsc-cal-week-nr-c', e0T[g0T]).html());
                }
                M2K('.mbsc-cal-slide-a .mbsc-cal-day', C4T).attr('tabindex', 0);
            }

            function c0T(Z1T, M1T, J1T, j1T, P1T, V1T, k1T) {
                if (Z1T) {
                    V4T.push({
                        y: Z1T,
                        m: M1T,
                        dir: J1T,
                        slideNr: j1T,
                        load: P1T,
                        active: V1T,
                        callback: k1T
                    });
                }
                if (M4T) {
                    return;
                }
                var G1T = V4T.shift(),
                    Y1T;
                Z1T = G1T.y;
                M1T = G1T.m;
                J1T = G1T.dir === 'next';
                j1T = G1T.slideNr;
                P1T = G1T.load;
                V1T = G1T.active;
                k1T = G1T.callback || H4T;
                Y1T = m0T.getDate(Z1T, M1T, 1);
                Z1T = m0T.getYear(Y1T);
                M1T = m0T.getMonth(Y1T);
                M4T = true;
                d0T.changing = true;
                d0T.trigger('onMonthChange', {
                    year: Z1T,
                    month: M1T
                });
                d0T.trigger('onMonthLoading', {
                    year: Z1T,
                    month: M1T
                });
                d5T(Z1T, M1T);
                if (P1T) {
                    for (A0T = 0; A0T < W0T; A0T++) {
                        e0T[J1T ? r0T - W0T + A0T : A0T].html(b4T(Z1T, M1T - Q0T + A0T));
                    }
                }
                if (V1T) {
                    J4T.addClass('mbsc-cal-slide-a');
                }
                setTimeout(function() {
                    d0T.ariaMessage(m0T.monthNames[M1T] + ' ' + Z1T);
                    K5T(Z1T, M1T, 200);
                    I0T = J1T ? I0T - F0T * j1T * K4T : I0T + F0T * j1T * K4T;
                    L4T.scroll(I0T, V1T ? 200 : 0, false, function() {
                        var m1T;
                        if (e0T.length) {
                            J4T.removeClass('mbsc-cal-slide-a').attr('aria-hidden', 'true');
                            if (J1T) {
                                m1T = e0T.splice(0, j1T);
                                for (A0T = 0; A0T < j1T; A0T++) {
                                    e0T.push(m1T[A0T]);
                                    n5T(e0T[e0T.length - 1], +e0T[e0T.length - 2].attr('data-curr') + 100 * K4T);
                                }
                            } else {
                                m1T = e0T.splice(r0T - j1T, j1T);
                                for (A0T = j1T - 1; A0T >= 0; A0T--) {
                                    e0T.unshift(m1T[A0T]);
                                    n5T(e0T[0], +e0T[1].attr('data-curr') - 100 * K4T);
                                }
                            }
                            for (A0T = 0; A0T < j1T; A0T++) {
                                e0T[J1T ? r0T - j1T + A0T : A0T].html(b4T(Z1T, M1T - Q0T - g0T + A0T + (J1T ? r0T - j1T : 0)));
                                if (P1T) {
                                    e0T[J1T ? A0T : r0T - j1T + A0T].html(b4T(Z1T, M1T - Q0T - g0T + A0T + (J1T ? 0 : r0T - j1T)));
                                }
                            }
                            for (A0T = 0; A0T < W0T; A0T++) {
                                e0T[g0T + A0T].addClass('mbsc-cal-slide-a').removeAttr('aria-hidden');
                            }
                            x5T(Z1T, M1T);
                            M4T = false;
                        }
                        if (V4T.length) {
                            setTimeout(function() {
                                c0T();
                            }, 10);
                        } else {
                            R0T = Z1T;
                            b0T = M1T;
                            d0T.changing = false;
                            M2K('.mbsc-cal-day', C4T).attr('tabindex', -1);
                            e5T();
                            if (z4T !== undefined) {
                                d4T(Z1T, M1T, z4T);
                            } else {
                                d0T.trigger('onMonthLoaded', {
                                    year: Z1T,
                                    month: M1T
                                });
                            }
                            k1T();
                        }
                    });
                }, 10);
            }

            function H5T() {
                var d1T = M2K(this),
                    b1T = d0T.live,
                    f1T = d0T.getDate(true),
                    g1T = d1T.attr('data-full'),
                    W1T = g1T.split('-'),
                    A1T = x0K(W1T[0], W1T[1], W1T[2]),
                    R1T = x0K(A1T.getFullYear(), A1T.getMonth(), A1T.getDate(), f1T.getHours(), f1T.getMinutes(), f1T.getSeconds()),
                    Q1T = d1T.hasClass('mbsc-cal-day-sel');
                if (!y4T && d1T.hasClass('mbsc-cal-day-diff')) {
                    return;
                }
                if (d0T.trigger('onDayChange', M2K.extend(o4T[g1T], {
                        date: R1T,
                        target: this,
                        selected: Q1T
                    })) !== false) {
                    d0T.needsSlide = false;
                    u4T = true;
                    d0T.setDate(R1T, b1T, 0.2, !b1T, true);
                    if (m0T.outerMonthChange) {
                        T0T = true;
                        if (A1T < m0T.getDate(R0T, b0T - Q0T, 1)) {
                            s5T();
                        } else if (A1T > m0T.getDate(R0T, b0T - Q0T + W0T, 0)) {
                            L5T();
                        }
                        T0T = false;
                    }
                    if (d0T.live) {
                        d0T.trigger('onSet', {

                            valueText: d0T._value
                        });
                    }
                }
            }

            function n5T(F1T, e1T) {
                F1T.attr('data-curr', e1T);
                F1T[0].style[d1K + 'Transform'] = 'translate3d(' + (l0T ? '0,' + e1T + '%,' : e1T + '%,' + '0,') + '0)';
            }

            function W5T(v1T) {
                if (d0T.isVisible() && z0T) {
                    if (!d0T.changing) {
                        d4T(R0T, b0T, v1T);
                    } else {
                        z4T = v1T;
                    }
                }
            }

            function L5T() {
                if (T0T && m0T.getDate(R0T, b0T + W0T - Q0T, 1) <= B0T) {
                    c0T(R0T, ++b0T, 'next', 1, false, true, L5T);
                }
            }

            function s5T() {
                if (T0T && m0T.getDate(R0T, b0T - Q0T - 1, 1) >= y0T) {
                    c0T(R0T, --b0T, 'prev', 1, false, true, s5T);
                }
            }

            function J5T(H1T) {
                if (T0T && m0T.getDate(R0T, b0T, 1) <= m0T.getDate(m0T.getYear(B0T) - 1, m0T.getMonth(B0T) - l4T, 1)) {
                    c0T(++R0T, b0T, 'next', g0T, true, true, function() {
                        J5T(H1T);
                    });
                } else if (T0T && !H1T.hasClass('mbsc-fr-btn-d')) {
                    c0T(m0T.getYear(B0T), m0T.getMonth(B0T) - l4T, 'next', g0T, true, true);
                }
            }

            function P5T(D1T) {
                if (T0T && m0T.getDate(R0T, b0T, 1) >= m0T.getDate(m0T.getYear(y0T) + 1, m0T.getMonth(y0T) + Q0T, 1)) {
                    c0T(--R0T, b0T, 'prev', g0T, true, true, function() {
                        P5T(D1T);
                    });
                } else if (T0T && !D1T.hasClass('mbsc-fr-btn-d')) {
                    c0T(m0T.getYear(y0T), m0T.getMonth(y0T) + Q0T, 'prev', g0T, true, true);
                }
            }

            function X4T(l1T, B1T) {
                if (!l1T.hasClass('mbsc-cal-v')) {
                    l1T.addClass('mbsc-cal-v' + (B1T ? '' : ' mbsc-cal-p-in')).removeClass('mbsc-cal-p-out mbsc-cal-h');
                    d0T.trigger('onSelectShow');
                }
            }

            function w4T(z1T, y1T) {
                if (z1T.hasClass('mbsc-cal-v')) {
                    z1T.removeClass('mbsc-cal-v mbsc-cal-p-in').addClass('mbsc-cal-h' + (y1T ? '' : ' mbsc-cal-p-out'));
                }
            }

            function Y4T(T1T, X1T) {
                if ((X1T || T1T).hasClass('mbsc-cal-v')) {
                    w4T(T1T);
                } else {
                    X4T(T1T);
                }
            }

            function q5T() {
                M2K(this).removeClass('mbsc-cal-p-out mbsc-cal-p-in');
            }

            function R5T(r1T) {
                return r1T[0].innerWidth || r1T.innerWidth();
            }
            var S4T, A0T, t0T, c4T, Q4T, f0T, U4T, D0T, C4T, F0T, I0T, u4T, z0T, N4T, f4T, Y5T, o0T, Z4T, g4T, L4T, i4T, E4T, v4T, P4T, D4T, G4T, a4T, f5T, V5T, y0T, B0T, m4T, F5T, n4T, R0T, b0T, I4T, t4T, m5T, A5T, O4T, a0T, M4T, b5T, g5T, E0T, p4T, T0T, W0T, r0T, l4T, Q0T, z4T, y4T, v5T, X0T, h4T, F4T, h5T = this,
                J4T = [],
                e0T = [],
                V4T = [],
                v0T = {},
                o4T = {},
                H4T = function a1T() {},
                j5T = M2K.extend({}, d0T.settings),
                m0T = M2K.extend(d0T.settings, n1K, j5T),
                G5T = m0T.weekDays == 'full' ? '' : m0T.weekDays == 'min' ? 'Min' : 'Short',
                j4T = m0T.weekCounter,
                N5T = m0T.layout || (/top|bottom|inline/.test(m0T.display) ? 'liquid' : ''),
                u0T = N5T == 'liquid' && m0T.display !== 'bubble',
                M5T = m0T.display == 'center',
                U0T = m0T.rtl,
                K4T = U0T ? -1 : 1,
                i5T = u0T ? null : m0T.calendarWidth,
                l0T = m0T.calendarScroll == 'vertical',
                q4T = m0T.quickNav,
                g0T = m0T.preMonths,
                x4T = m0T.yearChange,
                A4T = m0T.controls.join(','),
                k4T = (m0T.tabs === true || m0T.tabs !== false && u0T) && m0T.controls.length > 1,
                W4T = !k4T && m0T.tabs === undefined && !u0T && m0T.controls.length > 1,
                e4T = m0T.yearSuffix || '',
                s4T = m0T.activeClass || '',
                R4T = 'mbsc-cal-tab-sel ' + (m0T.activeTabClass || ''),
                r4T = m0T.activeTabInnerClass || '',
                S5T = 'mbsc-fr-btn-d ' + (m0T.disabledClass || ''),
                p0T = '',
                H0T = '';
            if (A4T.match(/calendar/)) {
                z0T = true;
            } else {
                q4T = false;
            }
            if (A4T.match(/date/)) {
                v0T.date = 1;
            }
            if (A4T.match(/time/)) {
                v0T.time = 1;
            }
            if (z0T && v0T.date) {
                k4T = true;
                W4T = false;
            }
            m0T.layout = N5T;
            m0T.preset = (v0T.date || z0T ? 'date' : '') + (v0T.time ? 'time' : '');
            if (m0T.display == 'inline') {
                M2K(this).closest('[data-role="page"]').on('pageshow', function() {
                    d0T.position();
                });
            }
            d0T.changing = false;
            d0T.needsSlide = true;
            d0T.getDayProps = H4T;
            d0T.onGenMonth = H4T;
            d0T.prepareObj = O5T;
            d0T.refresh = function() {
                W5T(false);
            };
            d0T.redraw = function() {
                W5T(true);
            };
            d0T.navigate = function(I1T, u1T) {
                var p1T, t1T, E1T = d0T.isVisible();
                if (u1T && E1T) {
                    w5T(I1T, true);
                } else {
                    p1T = m0T.getYear(I1T);
                    t1T = m0T.getMonth(I1T);
                    if (E1T && (p1T != R0T || t1T != b0T)) {
                        d0T.trigger('onMonthChange', {
                            year: p1T,
                            month: t1T
                        });
                        K5T(p1T, t1T);
                        d4T(p1T, t1T);
                        x5T(I1T.getFullYear(), I1T.getMonth());
                    }
                    R0T = p1T;
                    b0T = t1T;
                }
            };
            d0T.showMonthView = function() {
                if (q4T && !Z4T) {
                    w4T(H0T, true);
                    w4T(p0T, true);
                    X4T(o0T, true);
                    Z4T = true;
                }
            };
            d0T.changeTab = function(o1T) {
                if (!d0T._isVisible || !v0T[o1T] || a0T == o1T) {
                    return;
                }
                a0T = o1T;
                M2K('.mbsc-cal-pnl', f0T).removeClass('mbsc-cal-p-in').addClass('mbsc-cal-pnl-h');
                M2K('.mbsc-cal-tab', f0T).removeClass(R4T).removeAttr('aria-selected').find('.mbsc-cal-tab-i').removeClass(r4T);
                M2K('.mbsc-cal-tab[data-control="' + o1T + '"]', f0T).addClass(R4T).attr('aria-selected', 'true').find('.mbsc-cal-tab-i').addClass(r4T);
                v0T[a0T].removeClass('mbsc-cal-pnl-h').addClass('mbsc-cal-p-in');
                if (a0T == 'calendar') {
                    S4T = d0T.getDate(true);
                    if (S4T.getFullYear() !== n4T.getFullYear() || S4T.getMonth() !== n4T.getMonth() || S4T.getDate() !== n4T.getDate()) {
                        w5T(S4T);
                    }
                }
                d0T.showMonthView();
                d0T.trigger('onTabChange', {
                    tab: a0T
                });
            };
            c4T = Z5K.datetime.call(this, d0T);
            v4T = (m0T.dateWheels || m0T.dateFormat).search(/m/i);
            D4T = (m0T.dateWheels || m0T.dateFormat).search(/y/i);
            M2K.extend(c4T, {
                ariaMessage: m0T.calendarText,
                onMarkupReady: function U1T(s8T) {
                    var q8T, c1T, N8T = '';
                    f0T = M2K(s8T.target);
                    U4T = m0T.display == 'inline' ? M2K(this).is('div') ? M2K(this) : M2K(this).parent() : d0T._window;
                    n4T = d0T.getDate(true);
                    if (!R0T) {
                        R0T = m0T.getYear(n4T);
                        b0T = m0T.getMonth(n4T);
                    }
                    I0T = 0;
                    f4T = true;
                    M4T = false;
                    g4T = m0T.monthNames;
                    a0T = 'calendar';
                    if (m0T.min) {
                        y0T = x0K(m0T.min.getFullYear(), m0T.min.getMonth(), 1);
                        m4T = m0T.min;
                    }
                    if (m0T.max) {
                        B0T = x0K(m0T.max.getFullYear(), m0T.max.getMonth(), 1);
                        F5T = m0T.max;
                    }
                    f0T.addClass('mbsc-calendar');
                    Q4T = M2K('.mbsc-fr-popup', f0T);
                    O4T = M2K('.mbsc-fr-c', f0T);
                    if (v0T.date) {
                        v0T.date = M2K('.mbsc-sc-whl-gr-c', f0T).eq(0);
                    } else if (z0T) {
                        M2K('.mbsc-sc-whl-gr-c', f0T).eq(0).addClass('mbsc-cal-hdn');
                    }
                    if (v0T.time) {
                        v0T.time = M2K('.mbsc-sc-whl-gr-c', f0T).eq(1);
                    }
                    if (z0T) {
                        W0T = m0T.months == 'auto' ? Math.max(1, Math.min(3, Math.floor((i5T || R5T(U4T)) / 280))) : m0T.months;
                        r0T = W0T + 2 * g0T;
                        l4T = Math.floor(W0T / 2);
                        Q0T = Math.round(W0T / 2) - 1;
                        y4T = m0T.showOuterDays === undefined ? W0T < 2 : m0T.showOuterDays;
                        l0T = l0T && W0T < 2;
                        c1T = '<div class="mbsc-cal-btnw"><div class="' + (U0T ? 'mbsc-cal-next-m' : 'mbsc-cal-prev-m') + ' mbsc-cal-prev mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (m0T.btnCalPrevClass || '') + '"' + ' aria-label="' + m0T.prevMonthText + '"></div></div>';
                        for (A0T = 0; A0T < W0T; ++A0T) {
                            c1T += '<div class="mbsc-cal-btnw-m" style="width: ' + 100 / W0T + '%"><span role="button" class="mbsc-cal-month"></span></div>';
                        }
                        c1T += '<div class="' + (U0T ? 'mbsc-cal-prev-m' : 'mbsc-cal-next-m') + ' mbsc-cal-next mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (m0T.btnCalNextClass || '') + '"' + ' aria-label="' + m0T.nextMonthText + '"></div></div></div>';
                        if (x4T) {
                            N8T = '<div class="mbsc-cal-btnw"><div class="' + (U0T ? 'mbsc-cal-next-y' : 'mbsc-cal-prev-y') + ' mbsc-cal-prev mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (m0T.btnCalPrevClass || '') + '"' + ' aria-label="' + m0T.prevYearText + '"></div></div>' + '<span role="button" class="mbsc-cal-year"></span>' + '<div class="' + (U0T ? 'mbsc-cal-prev-y' : 'mbsc-cal-next-y') + ' mbsc-cal-next mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (m0T.btnCalNextClass || '') + '"' + ' aria-label="' + m0T.nextYearText + '"></div></div></div>';
                        }
                        if (q4T) {
                            G4T = m0T.getYear(y0T);
                            a4T = m0T.getYear(B0T);
                            f5T = m0T.getMonth(y0T);
                            V5T = m0T.getMonth(B0T);
                            t4T = Math.ceil((a4T - G4T + 1) / 12) + 2;
                            p0T = Q5T('month', 36, 24, 0, '', m0T.monthNames, m0T.monthNamesShort);
                            H0T = Q5T('year', t4T * 12, a4T - G4T + 13, G4T, e4T);
                        }
                        N4T = '<div class="mbsc-w-p mbsc-cal-c"><div class="mbsc-cal mbsc-cal-hl-now ' + (W0T > 1 ? ' mbsc-cal-multi ' : '') + (j4T ? ' mbsc-cal-weeks ' : '') + (l0T ? ' mbsc-cal-vertical' : '') + (y4T ? '' : ' mbsc-cal-hide-diff ') + (m0T.calendarClass || '') + '">' + '<div class="mbsc-cal-header"><div class="mbsc-cal-btnc ' + (x4T ? 'mbsc-cal-btnc-ym' : 'mbsc-cal-btnc-m') + '">' + (D4T < v4T || W0T > 1 ? N8T + c1T : c1T + N8T) + '</div></div><div class="mbsc-cal-body"><div class="mbsc-cal-m-c mbsc-cal-v"><div class="mbsc-cal-days-c">';
                        for (t0T = 0; t0T < W0T; ++t0T) {
                            N4T += '<div aria-hidden="true" class="mbsc-cal-days" style="width: ' + 100 / W0T + '%"><table cellpadding="0" cellspacing="0"><tr>';
                            for (A0T = 0; A0T < 7; A0T++) {
                                N4T += '<th>' + m0T['dayNames' + G5T][(A0T + m0T.firstDay) % 7] + '</th>';
                            }
                            N4T += '</tr></table></div>';
                        }
                        N4T += '</div>' + '<div class="mbsc-cal-week-nrs-c ' + (m0T.weekNrClass || '') + '">' + '<div class="mbsc-cal-week-nrs"></div>' + '</div>' + '<div class="mbsc-cal-anim-c ' + (m0T.calendarClass || '') + '">' + '<div class="mbsc-cal-anim">';
                        for (A0T = 0; A0T < W0T + 2 * g0T; A0T++) {
                            N4T += '<div class="mbsc-cal-slide" aria-hidden="true"></div>';
                        }
                        N4T += '</div></div></div>' + p0T + H0T + '</div></div></div>';
                        v0T.calendar = M2K(N4T);
                    }
                    M2K.each(m0T.controls, function(L8T, h8T) {
                        v0T[h8T] = M2K('<div class="mbsc-cal-pnl" id="' + (h5T.id + '_dw_pnl_' + L8T) + '"></div>').append(M2K('<div class="mbsc-cal-pnl-i"></div>').append(v0T[h8T])).appendTo(O4T);
                    });
                    q8T = '<div class="mbsc-cal-tabs"><ul role="tablist">';
                    M2K.each(m0T.controls, function(n8T, i8T) {
                        if (v0T[i8T]) {
                            q8T += '<li role="tab" aria-controls="' + (h5T.id + '_dw_pnl_' + n8T) + '" class="mbsc-cal-tab ' + (n8T ? '' : R4T) + '" data-control="' + i8T + '"><a href="#" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-cal-tab-i ' + (!n8T ? r4T : '') + '">' + m0T[i8T + 'Text'] + '</a></li>';
                        }
                    });
                    q8T += '</ul></div>';
                    O4T.before(q8T);
                    D0T = M2K('.mbsc-cal-anim-c', f0T);
                    C4T = M2K('.mbsc-cal-anim', D0T);
                    Y5T = M2K('.mbsc-cal-week-nrs', f0T);
                    if (z0T) {
                        Z4T = true;
                        J4T = M2K('.mbsc-cal-slide', C4T).each(function(w8T, x8T) {
                            e0T.push(M2K(x8T));
                        });
                        J4T.slice(g0T, g0T + W0T).addClass('mbsc-cal-slide-a').removeAttr('aria-hidden');
                        for (A0T = 0; A0T < r0T; A0T++) {
                            n5T(e0T[A0T], 100 * (A0T - g0T) * K4T);
                        }
                        d4T(R0T, b0T);
                        L4T = new Z4K.ScrollView(D0T[0], {
                            axis: l0T ? 'Y' : 'X',
                            easing: '',
                            contSize: 0,
                            snap: 1,
                            maxSnapScroll: g0T,
                            moveElement: C4T,
                            mousewheel: m0T.mousewheel,
                            time: 200,
                            lock: true,
                            stopProp: false,
                            minScroll: -Infinity,
                            maxScroll: Infinity,
                            onAnimationEnd: function K8T(S8T) {
                                var O8T = Math.round(((l0T ? S8T.posY : S8T.posX) - I0T) / F0T) * K4T;
                                if (O8T) {
                                    c0T(R0T, b0T - O8T, O8T > 0 ? 'prev' : 'next', O8T > 0 ? O8T : -O8T);
                                }
                            }
                        });
                    }
                    E4T = M2K('.mbsc-cal-month', f0T);
                    P4T = M2K('.mbsc-cal-year', f0T);
                    o0T = M2K('.mbsc-cal-m-c', f0T);
                    if (q4T) {
                        o0T.on(Y4K, q5T);
                        p0T = M2K('.mbsc-cal-month-c', f0T).on(Y4K, q5T);
                        H0T = M2K('.mbsc-cal-year-c', f0T).on(Y4K, q5T);
                        v5T = M2K('.mbsc-cal-sc-p', f0T);
                        I4T = {
                            axis: l0T ? 'Y' : 'X',
                            contSize: 0,
                            snap: 1,
                            maxSnapScroll: 1,
                            rtl: m0T.rtl,
                            mousewheel: m0T.mousewheel,
                            time: 200,
                            stopProp: false,
                            minScroll: -Infinity,
                            maxScroll: Infinity
                        };
                        X0T = new Z4K.ScrollView(H0T[0], I4T);
                        i4T = new Z4K.ScrollView(p0T[0], I4T);
                    }
                    if (u0T) {
                        f0T.addClass('mbsc-cal-liq');
                    } else {
                        M2K('.mbsc-cal', f0T).width(i5T || 280 * W0T);
                    }
                    if (m0T.calendarHeight) {
                        M2K('.mbsc-cal-anim-c', f0T).height(m0T.calendarHeight);
                    }
                    d0T.tap(D0T, function(Z8T) {
                        var C8T = M2K(Z8T.target);
                        if (!M4T && !L4T.scrolled && m0T.readonly !== true) {
                            C8T = C8T.closest('.mbsc-cal-day', this);
                            if (C8T.hasClass('mbsc-cal-day-v')) {
                                H5T.call(C8T[0]);
                            }
                        }
                    });
                    M2K('.mbsc-cal-btn', f0T).on('touchstart mousedown keydown', B5T).on('touchmove', Z5T).on('touchend touchcancel keyup', C5T);
                    M2K('.mbsc-cal-tab', f0T).on('touchstart click', function(M8T) {
                        if (S5K(M8T, this)) {
                            d0T.changeTab(M2K(this).attr('data-control'));
                        }
                    });
                    if (q4T) {
                        d0T.tap(M2K('.mbsc-cal-month', f0T), function() {
                            if (!H0T.hasClass('mbsc-cal-v')) {
                                Y4T(o0T);
                                Z4T = o0T.hasClass('mbsc-cal-v');
                            }
                            Y4T(p0T);
                            w4T(H0T);
                        });
                        d0T.tap(M2K('.mbsc-cal-year', f0T), function() {
                            if (!H0T.hasClass('mbsc-cal-v')) {
                                X0T.scroll(h4T);
                            }
                            if (!p0T.hasClass('mbsc-cal-v')) {
                                Y4T(o0T);
                                Z4T = o0T.hasClass('mbsc-cal-v');
                            }
                            Y4T(H0T);
                            w4T(p0T);
                        });
                        d0T.tap(M2K('.mbsc-cal-month-s', f0T), function() {
                            if (!i4T.scrolled && !M2K(this).hasClass('mbsc-fr-btn-d')) {
                                d0T.navigate(m0T.getDate(R0T, M2K(this).attr('data-val'), 1));
                            }
                        });
                        d0T.tap(M2K('.mbsc-cal-year-s', f0T), function() {
                            if (!X0T.scrolled) {
                                S4T = m0T.getDate(M2K(this).attr('data-val'), b0T, 1);
                                d0T.navigate(new Date(C0K.constrain(S4T, y0T, B0T)));
                            }
                        });
                        d0T.tap(H0T, function() {
                            if (!X0T.scrolled) {
                                w4T(H0T);
                                X4T(o0T);
                                Z4T = true;
                            }
                        });
                        d0T.tap(p0T, function() {
                            if (!i4T.scrolled) {
                                w4T(p0T);
                                X4T(o0T);
                                Z4T = true;
                            }
                        });
                    }
                },
                onShow: function j8T() {
                    if (z0T) {
                        K5T(R0T, b0T);
                    }
                },
                onPosition: function J8T(b8T) {
                    var A8T, Y8T, W8T, m8T, V8T, G8T, k8T = 0,
                        P8T = 0,
                        f8T = 0,
                        d8T = b8T.windowHeight;
                    if (u0T) {
                        if (M5T) {
                            D0T.height('');
                        }
                        O4T.height('');
                        C4T.width('');
                    }
                    if (F0T) {
                        V8T = F0T;
                    }
                    if (z0T) {
                        F0T = Math.round(Math.round(D0T[0][l0T ? 'offsetHeight' : 'offsetWidth']) / W0T);
                    }
                    if (F0T) {
                        f0T.removeClass('mbsc-cal-m mbsc-cal-l');
                        if (F0T > 1024) {
                            f0T.addClass('mbsc-cal-l');
                        } else if (F0T > 640) {
                            f0T.addClass('mbsc-cal-m');
                        }
                    }
                    if (k4T && (f4T || u0T) || W4T) {
                        M2K('.mbsc-cal-pnl', f0T).removeClass('mbsc-cal-pnl-h');
                        M2K.each(v0T, function(R8T, g8T) {
                            A8T = g8T[0].offsetWidth;
                            k8T = Math.max(k8T, A8T);
                            P8T = Math.max(P8T, g8T[0].offsetHeight);
                            f8T += A8T;
                        });
                        if (k4T || W4T && f8T > R5T(U4T)) {
                            Y8T = true;
                            a0T = M2K('.mbsc-cal-tabs .mbsc-cal-tab-sel', f0T).attr('data-control');
                            Q4T.addClass('mbsc-cal-tabbed');
                        } else {
                            a0T = 'calendar';
                            k8T = '';
                            P8T = '';
                            Q4T.removeClass('mbsc-cal-tabbed');
                            O4T.css({
                                width: '',
                                height: ''
                            });
                        }
                    }
                    if (u0T && M5T && z0T) {
                        d0T._isFullScreen = true;
                        if (Y8T) {
                            O4T.height(v0T.calendar[0].offsetHeight);
                        }
                        m8T = Q4T[0].offsetHeight;
                        if (d8T >= m8T) {
                            D0T.height(d8T - m8T + D0T[0].offsetHeight);
                        }
                        P8T = Math.max(P8T, v0T.calendar[0].offsetHeight);
                    }
                    if (Y8T) {
                        O4T.css({
                            width: u0T ? '' : k8T,
                            height: P8T
                        });
                        if (z0T) {
                            F0T = Math.round(Math.round(D0T[0][l0T ? 'offsetHeight' : 'offsetWidth']) / W0T);
                        }
                    }
                    if (F0T) {
                        C4T[l0T ? 'height' : 'width'](F0T);
                        if (F0T !== V8T) {
                            if (x4T) {
                                g4T = m0T.maxMonthWidth > M2K('.mbsc-cal-btnw-m', f0T).width() ? m0T.monthNamesShort : m0T.monthNames;
                                for (A0T = 0; A0T < W0T; ++A0T) {
                                    M2K(E4T[A0T]).text(g4T[m0T.getMonth(m0T.getDate(R0T, b0T - Q0T + A0T, 1))]);
                                }
                            }
                            if (q4T) {
                                G8T = H0T[0][l0T ? 'offsetHeight' : 'offsetWidth'];
                                M2K.extend(X0T.settings, {
                                    contSize: G8T,
                                    snap: G8T,
                                    minScroll: (2 - t4T) * G8T,
                                    maxScroll: -G8T
                                });
                                M2K.extend(i4T.settings, {
                                    contSize: G8T,
                                    snap: G8T,
                                    minScroll: -G8T,
                                    maxScroll: -G8T
                                });
                                X0T.refresh();
                                i4T.refresh();
                                if (H0T.hasClass('mbsc-cal-v')) {
                                    X0T.scroll(h4T);
                                }
                            }
                            if (u0T && !f4T && V8T) {
                                W8T = I0T / V8T;
                                I0T = W8T * F0T;
                            }
                            x5T(R0T, b0T);
                        }
                    } else {
                        F0T = V8T;
                    }
                    if (Y8T) {
                        M2K('.mbsc-cal-pnl', f0T).addClass('mbsc-cal-pnl-h');
                        v0T[a0T].removeClass('mbsc-cal-pnl-h');
                    }
                    d0T.trigger('onCalResize');
                    f4T = false;
                },
                onHide: function Q8T() {
                    V4T = [];
                    e0T = [];
                    a0T = null;
                    R0T = null;
                    b0T = null;
                    M4T = true;
                    F0T = 0;
                    if (L4T) {
                        L4T.destroy();
                    }
                    if (q4T && X0T && i4T) {
                        X0T.destroy();
                        i4T.destroy();
                    }
                },
                onValidated: function e8T(D8T) {
                    var v8T, H8T, F8T;
                    H8T = d0T.getDate(true);
                    if (u4T) {
                        v8T = 'calendar';
                    } else {
                        for (F8T in d0T.order) {
                            if (F8T && d0T.order[F8T] === D8T) {
                                v8T = /[mdy]/.test(F8T) ? 'date' : 'time';
                            }
                        }
                    }
                    d0T.trigger('onSetDate', {
                        date: H8T,
                        control: v8T
                    });
                    w5T(H8T);
                    u4T = false;
                }
            });
            return c4T;
        };
        var X2K = Z2K.$;
        var j0K = X2K.extend;
        var R0K = Z2K.util;
        var v4K = R0K.datetime;
        var w5K = v4K.adjustedDate;
        var i5K = Z2K.presets.scroller;
        var X6K = {};
        Z2K.presetShort('calendar');
        i5K.calendar = function(z8T) {
            function h9T(L9T) {
                if (L9T) {
                    if (E8T[L9T]) {
                        return E8T[L9T];
                    }
                    var n9T = X2K('<div style="background-color:' + L9T + ';"></div>').appendTo('body'),
                        w9T = window.getComputedStyle ? getComputedStyle(n9T[0]) : n9T[0].style,
                        i9T = w9T.backgroundColor.replace(/rgb|rgba|\(|\)|\s/g, '').split(','),
                        K9T = i9T[0] * 0.299 + i9T[1] * 0.587 + i9T[2] * 0.114,
                        x9T = K9T > 130 ? '#000' : '#fff';
                    n9T.remove();
                    E8T[L9T] = x9T;
                    return x9T;
                }
            }

            function X8T(O9T) {
                return w5K(O9T.getFullYear(), O9T.getMonth(), O9T.getDate());
            }

            function s9T(S9T) {
                B8T = {};
                if (S9T && S9T.length) {
                    for (T8T = 0; T8T < S9T.length; T8T++) {
                        B8T[X8T(S9T[T8T])] = S9T[T8T];
                    }
                }
            }

            function a8T() {
                z8T.refresh();
            }
            var p8T, t8T, N9T, T8T, u8T, q9T, I8T, E8T = {},
                c8T = j0K({}, z8T.settings),
                l8T = j0K(z8T.settings, X6K, c8T),
                U8T = l8T.activeClass || '',
                y8T = l8T.select == 'multiple' || l8T.select > 1 || l8T.selectType == 'week',
                o8T = R0K.isNumeric(l8T.select) ? l8T.select : Infinity,
                r8T = !!l8T.events,
                B8T = {};
            I8T = i5K.calbase.call(this, z8T);
            p8T = j0K({}, I8T);
            N9T = l8T.firstSelectDay === undefined ? l8T.firstDay : l8T.firstSelectDay;
            if (y8T && l8T.defaultValue && l8T.defaultValue.length) {
                for (T8T = 0; T8T < l8T.defaultValue.length; T8T++) {
                    B8T[X8T(l8T.defaultValue[T8T])] = l8T.defaultValue[T8T];
                }
            }
            z8T.onGenMonth = function(C9T, Z9T) {
                u8T = z8T.prepareObj(l8T.events || l8T.marked, C9T, Z9T);
            };
            z8T.getDayProps = function(k9T) {
                var j9T, Y9T = y8T ? B8T[k9T] !== undefined : undefined,
                    M9T = u8T[k9T] ? u8T[k9T] : false,
                    J9T = M9T && M9T[0] && M9T[0].text,
                    V9T = M9T && M9T[0] && M9T[0].color,
                    m9T = r8T && J9T ? h9T(V9T) : '',
                    G9T = '',
                    P9T = '';
                if (M9T) {
                    for (j9T = 0; j9T < M9T.length; j9T++) {
                        if (M9T[j9T].icon) {
                            G9T += '<span class="mbsc-ic mbsc-ic-' + M9T[j9T].icon + '"' + (M9T[j9T].text ? '' : M9T[j9T].color ? ' style="color:' + M9T[j9T].color + ';"' : '') + '></span>\n';
                        }
                    }
                    P9T = '<div class="mbsc-cal-day-m"><div class="mbsc-cal-day-m-t">';
                    for (j9T = 0; j9T < M9T.length; j9T++) {
                        P9T += '<div class="mbsc-cal-day-m-c"' + (M9T[j9T].color ? ' style="background:' + M9T[j9T].color + ';"' : '') + '></div>';
                    }
                    P9T += '</div></div>';
                }
                return {
                    marked: M9T,
                    selected: Y9T,
                    cssClass: M9T ? 'mbsc-cal-day-marked' : '',
                    ariaLabel: r8T ? J9T : '',
                    markup: r8T && J9T ? '<div class="mbsc-cal-day-txt-c"><div class="mbsc-cal-day-txt" title="' + X2K('<div>' + J9T + '</div>').text() + '"' + (V9T ? ' style="background:' + V9T + ';color:' + m9T + ';text-shadow:none;"' : '') + '>' + G9T + J9T + '</div></div>' : r8T && G9T ? '<div class="mbsc-cal-day-ic-c">' + G9T + '</div>' : M9T ? P9T : ''
                };
            };
            z8T.addValue = function(A9T) {
                B8T[X8T(A9T)] = A9T;
                a8T();
            };
            z8T.removeValue = function(d9T) {
                delete B8T[X8T(d9T)];
                a8T();
            };
            z8T.setVal = function(f9T, W9T, b9T, g9T, R9T) {
                if (y8T) {
                    s9T(f9T);
                    f9T = f9T ? f9T[0] : null;
                }
                z8T._setVal(f9T, W9T, b9T, g9T, R9T);
                a8T();
            };
            z8T.getVal = function(Q9T) {
                if (y8T) {
                    return R0K.objectToArray(B8T);
                }
                return z8T.getDate(Q9T);
            };
            j0K(I8T, {
                highlight: !y8T,
                outerMonthChange: !y8T,
                parseValue: function e9T(F9T) {
                    var v9T, H9T;
                    if (y8T && F9T && typeof F9T === 'string') {
                        B8T = {};
                        F9T = F9T.split(',');
                        for (v9T = 0; v9T < F9T.length; v9T++) {
                            H9T = v4K.parseDate(z8T.format, F9T[v9T].replace(/^\s+|\s+$/g, ''), l8T);
                            B8T[X8T(H9T)] = H9T;
                        }
                        F9T = F9T[0];
                    }
                    if (y8T && l8T.defaultValue && l8T.defaultValue.length) {
                        l8T.defaultValue = l8T.defaultValue[0];
                    }
                    return p8T.parseValue.call(this, F9T);
                },
                formatValue: function D9T(z9T) {
                    var B9T, l9T = [];
                    if (y8T) {
                        for (B9T in B8T) {
                            l9T.push(v4K.formatDate(z8T.format, B8T[B9T], l8T));
                        }
                        return l9T.join(', ');
                    }
                    return p8T.formatValue.call(this, z9T);
                },
                onClear: function y9T() {
                    if (y8T) {
                        B8T = {};
                        z8T.refresh();
                    }
                },
                onBeforeShow: function T9T() {
                    if (l8T.setOnDayTap === undefined && (!l8T.buttons || !l8T.buttons.length)) {
                        l8T.setOnDayTap = true;
                    }
                    if (l8T.setOnDayTap && l8T.display != 'inline') {
                        l8T.outerMonthChange = false;
                    }
                    if (l8T.counter && y8T) {
                        l8T.headerText = function() {
                            var X9T = 0,
                                r9T = l8T.selectType == 'week' ? 7 : 1;
                            X2K.each(B8T, function() {
                                X9T++;
                            });
                            X9T = Math.round(X9T / r9T);
                            return (X9T > 1 ? l8T.selectedPluralText || l8T.selectedText : l8T.selectedText).replace(/{count}/, X9T);
                        };
                    }
                },
                onMarkupReady: function a9T(p9T) {
                    p8T.onMarkupReady.call(this, p9T);
                    t8T = X2K(p9T.target);
                    if (y8T) {
                        X2K('.mbsc-fr-hdr', t8T).attr('aria-live', 'off');
                        q9T = j0K({}, B8T);
                    }
                    if (r8T) {
                        X2K('.mbsc-cal', t8T).addClass('mbsc-cal-ev');
                    }
                },
                onDayChange: function t9T(U9T) {
                    var c9T = U9T.date,
                        I9T = X8T(c9T),
                        s7s = X2K(U9T.target),
                        q7s = U9T.selected;
                    if (y8T) {
                        if (l8T.selectType == 'week') {
                            var u9T, o9T, E9T = I9T.getDay() - N9T;
                            E9T = E9T < 0 ? 7 + E9T : E9T;
                            if (l8T.select != 'multiple') {
                                B8T = {};
                            }
                            for (u9T = 0; u9T < 7; u9T++) {
                                o9T = w5K(I9T.getFullYear(), I9T.getMonth(), I9T.getDate() - E9T + u9T);
                                if (q7s) {
                                    delete B8T[o9T];
                                } else if (R0K.objectToArray(B8T).length / 7 < o8T) {
                                    B8T[o9T] = o9T;
                                }
                            }
                            a8T();
                        } else {
                            var N7s = X2K('.mbsc-cal .mbsc-cal-day[data-full="' + s7s.attr('data-full') + '"]', t8T);
                            if (q7s) {
                                N7s.removeClass('mbsc-cal-day-sel').removeAttr('aria-selected').find('.mbsc-cal-day-i').removeClass(U8T);
                                delete B8T[I9T];
                            } else if (R0K.objectToArray(B8T).length < o8T) {
                                N7s.addClass('mbsc-cal-day-sel').attr('aria-selected', 'true').find('.mbsc-cal-day-i').addClass(U8T);
                                B8T[I9T] = I9T;
                            }
                        }
                    }
                    if (l8T.setOnDayTap && l8T.select != 'multiple' && l8T.display != 'inline') {
                        z8T.needsSlide = false;
                        z8T.setDate(c9T);
                        z8T.select();
                        return false;
                    }
                },
                onCancel: function h7s() {
                    if (!z8T.live && y8T) {
                        B8T = j0K({}, q9T);
                    }
                }
            });
            return I8T;
        };
        J2K.module('mobiscroll-calendar', []).directive('mobiscrollCalendar', ['$parse', function(L7s) {
            return Z2K.ng.getDDO(L7s, 'mobiscrollCalendar', {
                preset: 'calendar'
            });
        }]);
        var s5K = function n7s() {};
        var A6K = Z2K.$;
        var y4K = function i7s(C7s, Z7s, M7s) {
            var S7s, w7s, K7s, O7s, x7s = this;
            Z2K.classes.Base.call(this, C7s, Z7s, true);
            x7s.__init = s5K;
            x7s.__destroy = s5K;
            x7s._init = function(J7s) {
                var j7s;
                O7s = x7s.settings;
                S7s = A6K(C7s);
                j7s = !!w7s;
                w7s = x7s._$parent = j7s ? w7s : S7s.parent();
                if (K7s) {
                    w7s.removeClass(K7s);
                }
                K7s = x7s._css + ' mbsc-progress-w mbsc-control-w mbsc-' + O7s.theme + (O7s.baseTheme ? ' mbsc-' + O7s.baseTheme : '') + (O7s.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
                w7s.addClass(K7s);
                S7s.addClass('mbsc-control');
                x7s.__init(J7s);
                if (!j7s) {
                    x7s._attachChange();
                }
                x7s.refresh();
            };
            x7s._destroy = function() {
                x7s.__destroy();
                w7s.removeClass(K7s);
                S7s.removeClass('mbsc-control');
            };
            if (!M7s) {
                x7s.init(Z7s);
            }
        };
        y4K.prototype = {
            _class: 'progressbase'
        };
        var f0K = Z2K.$;
        var u0K = Z2K.$;
        var o0K = function H7s(o7s, q3s, N3s) {
            function c7s() {
                var s3s = r7s('value', B7s);
                if (s3s !== T7s) {
                    t7s(s3s);
                }
            }

            function r7s(L3s, n3s) {
                var h3s = l7s.attr(L3s);
                return h3s === undefined || h3s === '' ? n3s : +h3s;
            }

            function t7s(i3s, K3s, x3s, w3s) {
                i3s = Math.min(X7s, Math.max(i3s, B7s));
                U7s.css('width', (i3s - B7s) * 100 / (X7s - B7s) + '%');
                if (x3s === undefined) {
                    x3s = true;
                }
                if (w3s === undefined) {
                    w3s = x3s;
                }
                if (i3s !== T7s || K3s) {
                    D7s._display(i3s);
                }
                if (i3s !== T7s) {
                    T7s = i3s;
                    if (x3s) {
                        l7s.attr('value', T7s);
                    }
                    if (w3s) {
                        l7s.trigger('change');
                    }
                }
            }
            var a7s, l7s, z7s, U7s, E7s, p7s, B7s, X7s, y7s, u7s, T7s, I7s, D7s = this;
            y4K.call(this, o7s, q3s, true);
            D7s._display = function(O3s) {
                I7s = u7s && y7s.returnAffix ? u7s.replace(/\{value\}/, O3s).replace(/\{max\}/, X7s) : O3s;
                if (E7s) {
                    E7s.html(I7s);
                }
                if (a7s) {
                    a7s.html(I7s);
                }
            };
            D7s._attachChange = function() {
                l7s.on('change', c7s);
            };
            D7s.__init = function(M3s) {
                var C3s, Z3s, S3s, j3s;
                y7s = D7s.settings;
                l7s = u0K(o7s);
                j3s = !!z7s;
                z7s = D7s._$parent;
                B7s = D7s._min = M3s.min === undefined ? r7s('min', y7s.min) : M3s.min;
                X7s = D7s._max = M3s.max === undefined ? r7s('max', y7s.max) : M3s.max;
                T7s = r7s('value', B7s);
                C3s = l7s.attr('data-val') || y7s.val;
                S3s = l7s.attr('data-step-labels');
                S3s = S3s ? JSON.parse(S3s) : y7s.stepLabels;
                u7s = l7s.attr('data-template') || (X7s == 100 && !y7s.template ? '{value}%' : y7s.template);
                if (!j3s) {
                    K6K(z7s);
                    m6K(l7s);
                    z7s.find('.mbsc-input-wrap').append('<span class="mbsc-progress-cont"><span class="mbsc-progress-track mbsc-progress-anim"><span class="mbsc-progress-bar"></span></span></span>');
                    U7s = D7s._$progress = z7s.find('.mbsc-progress-bar');
                    p7s = D7s._$track = z7s.find('.mbsc-progress-track');
                } else {
                    if (C3s) {
                        a7s.remove();
                        z7s.removeClass('mbsc-progress-value-' + (C3s == 'right' ? 'right' : 'left'));
                    }
                    if (S3s) {
                        u0K('.mbsc-progress-step-label', p7s).remove();
                    }
                }
                l7s.attr('min', B7s).attr('max', X7s);
                if (C3s) {
                    a7s = u0K('<span class="mbsc-progress-value"></span>');
                    z7s.addClass('mbsc-progress-value-' + (C3s == 'right' ? 'right' : 'left')).find('.mbsc-input-wrap').append(a7s);
                }
                if (S3s) {
                    for (Z3s = 0; Z3s < S3s.length; ++Z3s) {
                        p7s.append('<span class="mbsc-progress-step-label" style="' + (y7s.rtl ? 'right' : 'left') + ': ' + (S3s[Z3s] - B7s) * 100 / (X7s - B7s) + '%" >' + S3s[Z3s] + '</span>');
                    }
                }
                E7s = u0K(l7s.attr('data-target') || y7s.target);
            };
            D7s.__destroy = function() {
                z7s.find('.mbsc-progress-cont').remove();
                z7s.find('.mbsc-input-wrap').before(l7s).remove();
                l7s.off('change', c7s);
            };
            D7s.refresh = function() {
                t7s(r7s('value', B7s), true, false);
            };
            D7s.getVal = function() {
                return T7s;
            };
            D7s.setVal = function(J3s, G3s, P3s) {
                t7s(J3s, true, G3s, P3s);
            };
            if (!N3s) {
                D7s.init(q3s);
            }
        };
        o0K.prototype = {
            _class: 'progress',
            _css: 'mbsc-progress',
            _hasTheme: true,
            _hasLang: true,
            _defaults: {
                min: 0,
                max: 100,
                returnAffix: true
            }
        };
        Z2K.classes.Progress = o0K;
        Z2K.presetShort('progress', 'Progress');
        var P4K = function V3s() {};
        var D2K = Z2K.$;
        var k4K = Z2K.util;
        var c0K = k4K.getCoord;
        var w6K = k4K.testTouch;
        var A4K = function k3s(t3s, s2s, J2s) {
            function L2s(G2s) {
                if (w6K(G2s, this) && !F3s && !t3s.disabled) {
                    if (e3s.stopProp) {
                        G2s.stopPropagation();
                    }
                    F3s = true;
                    l3s = false;
                    p3s = false;
                    o3s = c0K(G2s, 'X');
                    n2s = c0K(G2s, 'Y');
                    H3s = o3s;
                    v3s.removeClass('mbsc-progress-anim');
                    E3s = g3s ? D2K('.mbsc-slider-handle', this) : b3s;
                    if (X3s) {
                        X3s.removeClass('mbsc-handle-curr');
                    }
                    X3s = E3s.parent().addClass('mbsc-active mbsc-handle-curr');
                    d3s = +E3s.attr('data-index');
                    N2s = v3s[0].offsetWidth;
                    U3s = v3s[0].getBoundingClientRect().left;
                    if (G2s.type === 'mousedown') {
                        G2s.preventDefault();
                        D2K(document).on('mousemove', r3s).on('mouseup', B3s);
                    }
                }
            }

            function r3s(P2s) {
                if (F3s) {
                    H3s = c0K(P2s, 'X');
                    C2s = c0K(P2s, 'Y');
                    K2s = H3s - o3s;
                    Z2s = C2s - n2s;
                    if (Math.abs(K2s) > 5 || l3s) {
                        l3s = true;
                        if (Math.abs(c3s - new Date()) > 50) {
                            c3s = new Date();
                            M2s(H3s, e3s.round, i2s);
                        }
                    }
                    if (l3s) {
                        P2s.preventDefault();
                    } else if (Math.abs(Z2s) > 7) {
                        I3s(P2s);
                    }
                }
            }

            function B3s(V2s) {
                if (F3s) {
                    V2s.preventDefault();
                    if (!g3s) {
                        v3s.addClass('mbsc-progress-anim');
                    }
                    M2s(H3s, true, true);
                    if (!l3s && !p3s) {
                        if (V2s.type == 'touchend') {
                            k4K.preventClick();
                        }
                        Y3s._onTap(m3s[d3s]);
                    }
                    I3s();
                }
            }

            function x2s() {
                if (F3s) {
                    I3s();
                }
            }

            function w2s() {
                var k2s = Y3s._readValue(D2K(this)),
                    Y2s = +D2K(this).attr('data-index');
                if (k2s !== m3s[Y2s]) {
                    m3s[Y2s] = k2s;
                    R3s(k2s, Y2s);
                }
            }

            function h2s(m2s) {
                m2s.stopPropagation();
            }

            function O2s(A2s) {
                A2s.preventDefault();
            }

            function S2s(f2s) {
                var d2s;
                if (!t3s.disabled) {
                    switch (f2s.keyCode) {
                        case 38:
                        case 39:
                            d2s = 1;
                            break;
                        case 40:
                        case 37:
                            d2s = -1;
                            break;
                    }
                    if (d2s) {
                        f2s.preventDefault();
                        if (!y3s) {
                            d3s = +D2K(this).attr('data-index');
                            R3s(m3s[d3s] + W3s * d2s, d3s, true);
                            y3s = setInterval(function() {
                                R3s(m3s[d3s] + W3s * d2s, d3s, true);
                            }, 200);
                        }
                    }
                }
            }

            function z3s(W2s) {
                W2s.preventDefault();
                clearInterval(y3s);
                y3s = null;
            }

            function I3s() {
                F3s = false;
                X3s.removeClass('mbsc-active');
                D2K(document).off('mousemove', r3s).off('mouseup', B3s);
            }

            function M2s(g2s, R2s, Q2s) {
                var b2s = R2s ? Math.min(Math.round(Math.max((g2s - U3s) * 100 / N2s, 0) / u3s / W3s) * W3s * 100 / (D3s - A3s), 100) : Math.max(0, Math.min((g2s - U3s) * 100 / N2s, 100));
                if (T3s) {
                    b2s = 100 - b2s;
                }
                R3s(Math.round((A3s + b2s / u3s) * a3s) / a3s, d3s, Q2s, b2s);
            }

            function j2s(e2s) {
                return (e2s - A3s) * 100 / (D3s - A3s);
            }

            function R3s(F2s, v2s, z2s, D2s, y2s, l2s) {
                var B2s = b3s.eq(v2s),
                    H2s = B2s.parent();
                F2s = Math.min(D3s, Math.max(F2s, A3s));
                if (l2s === undefined) {
                    l2s = z2s;
                }
                if (Y3s._update) {
                    Y3s._update(F2s, m3s, v2s, D2s, g3s, y2s, H2s);
                } else {
                    H2s.css({
                        left: T3s ? 'auto' : (D2s || j2s(F2s)) + '%',
                        right: T3s ? (D2s || j2s(F2s)) + '%' : 'auto'
                    });
                }
                if (F2s > A3s) {
                    H2s.removeClass('mbsc-slider-start');
                } else if (m3s[v2s] > A3s || y2s) {
                    H2s.addClass('mbsc-slider-start');
                }
                if (z2s && m3s[v2s] != F2s) {
                    p3s = true;
                    m3s[v2s] = F2s;
                    Y3s._fillValue(F2s, v2s, l2s);
                }
                B2s.attr('aria-valuenow', F2s);
            }
            var f3s, E3s, X3s, b3s, q2s, Q3s, v3s, F3s, p3s, K2s, Z2s, U3s, H3s, C2s, d3s, T3s, i2s, D3s, A3s, l3s, g3s, W3s, e3s, u3s, o3s, n2s, a3s, y3s, N2s, m3s, Y3s = this,
                c3s = new Date();
            y4K.call(this, t3s, s2s, true);
            Y3s._onTap = P4K;
            Y3s.___init = P4K;
            Y3s.___destroy = P4K;
            Y3s._attachChange = function() {
                f3s.on(e3s.changeEvent, w2s);
            };
            Y3s.__init = function(X2s) {
                var T2s;
                if (b3s) {
                    T2s = true;
                    b3s.parent().remove();
                }
                Y3s.___init(X2s);
                Q3s = Y3s._$parent;
                v3s = Y3s._$track;
                f3s = Q3s.find('input');
                e3s = Y3s.settings;
                A3s = Y3s._min;
                D3s = Y3s._max;
                W3s = Y3s._step;
                i2s = Y3s._live;
                a3s = W3s % 1 !== 0 ? 100 / (+(W3s % 1).toFixed(2) * 100) : 1;
                u3s = 100 / (D3s - A3s) || 100;
                g3s = f3s.length > 1;
                T3s = e3s.rtl;
                m3s = [];
                f3s.each(function(r2s) {
                    m3s[r2s] = Y3s._readValue(D2K(this));
                    D2K(this).attr('data-index', r2s);
                });
                b3s = Q3s.find('.mbsc-slider-handle');
                q2s = Q3s.find(g3s ? '.mbsc-slider-handle-cont' : '.mbsc-progress-cont');
                b3s.on('keydown', S2s).on('keyup', z3s).on('blur', z3s);
                q2s.on('touchstart mousedown', L2s).on('touchmove', r3s).on('touchend touchcancel', B3s).on('pointercancel', x2s);
                if (!T2s) {
                    f3s.on('click', h2s);
                    Q3s.on('click', O2s);
                }
            };
            Y3s.__destroy = function() {
                Q3s.off('click', O2s);
                f3s.off(e3s.changeEvent, w2s).off('click', h2s);
                b3s.off('keydown', S2s).off('keyup', z3s).off('blur', z3s);
                q2s.off('touchstart mousedown', L2s).off('touchmove', r3s).off('touchend touchcancel', B3s).off('pointercancel', x2s);
                Y3s.___destroy();
            };
            Y3s.refresh = function() {
                f3s.each(function(a2s) {
                    R3s(Y3s._readValue(D2K(this)), a2s, true, false, true, false);
                });
            };
            Y3s.getVal = function() {
                return g3s ? m3s.slice(0) : m3s[0];
            };
            Y3s.setVal = Y3s._setVal = function(p2s, I2s, t2s) {
                if (!D2K.isArray(p2s)) {
                    p2s = [p2s];
                }
                D2K.each(p2s, function(E2s, u2s) {
                    R3s(u2s, E2s, true, false, true, t2s);
                });
            };
            if (!J2s) {
                Y3s.init(s2s);
            }
        };
        A4K.prototype = {
            _class: 'sliderbase'
        };
        var U4K = Z2K.$;
        var f4K = function o2s(M0s, C0s, k0s) {
            function c2s(Y0s) {
                return (Y0s - h0s) * 100 / (n0s - h0s);
            }

            function S0s(A0s, d0s) {
                var m0s = q0s.attr(A0s);
                return m0s === undefined || m0s === '' ? d0s : m0s === 'true';
            }
            var q0s, L0s, x0s, J0s, K0s, w0s, O0s, Z0s, N0s, n0s, h0s, i0s, s0s, U2s = this;
            o0K.call(this, M0s, C0s, true);
            var P0s = U2s.__init,
                V0s = U2s.__destroy;
            A4K.call(this, M0s, C0s, true);
            var G0s = U2s.__init,
                j0s = U2s.__destroy;
            U2s.__init = function(f0s) {
                P0s(f0s);
                G0s(f0s);
            };
            U2s.__destroy = function() {
                V0s();
                j0s();
            };
            U2s._update = function(W0s, b0s, g0s, R0s, Q0s, e0s, F0s) {
                if (Z0s) {
                    if (g0s === 0) {
                        W0s = Math.min(W0s, b0s[1]);
                        x0s.css({
                            width: c2s(b0s[1]) - c2s(W0s) + '%',
                            left: N0s ? 'auto' : c2s(W0s) + '%',
                            right: N0s ? c2s(W0s) + '%' : 'auto'
                        });
                    } else {
                        W0s = Math.max(W0s, b0s[0]);
                        x0s.css({
                            width: c2s(W0s) - c2s(b0s[0]) + '%'
                        });
                    }
                } else if (Q0s || !w0s) {
                    F0s.css({
                        left: N0s ? 'auto' : (R0s || c2s(W0s)) + '%',
                        right: N0s ? (R0s || c2s(W0s)) + '%' : 'auto'
                    });
                } else {
                    x0s.css('width', (R0s || c2s(W0s)) + '%');
                }
                if (O0s) {
                    J0s.eq(g0s).html(W0s);
                }
                if (!Q0s && (b0s[g0s] != W0s || e0s)) {
                    U2s._display(W0s);
                }
            };
            U2s._readValue = function(v0s) {
                return +v0s.val();
            };
            U2s._fillValue = function(D0s, H0s, l0s) {
                q0s.eq(H0s).val(D0s);
                if (l0s) {
                    q0s.eq(H0s).trigger('change');
                }
            };
            U2s.___init = function(y0s) {
                var B0s, z0s;
                if (L0s) {
                    L0s.removeClass('mbsc-slider-has-tooltip');
                    if (i0s != 1) {
                        U4K('.mbsc-slider-step', K0s).remove();
                    }
                }
                L0s = U2s._$parent;
                K0s = U2s._$track;
                x0s = U2s._$progress;
                q0s = L0s.find('input');
                s0s = U2s.settings;
                h0s = U2s._min;
                n0s = U2s._max;
                U2s._step = i0s = y0s.step === undefined ? +q0s.attr('step') || s0s.step : y0s.step;
                U2s._live = S0s('data-live', s0s.live);
                O0s = S0s('data-tooltip', s0s.tooltip);
                w0s = S0s('data-highlight', s0s.highlight) && q0s.length < 3;
                Z0s = w0s && q0s.length == 2;
                N0s = s0s.rtl;
                if (O0s) {
                    L0s.addClass('mbsc-slider-has-tooltip');
                }
                if (i0s != 1) {
                    z0s = (n0s - h0s) / i0s;
                    for (B0s = 0; B0s <= z0s; ++B0s) {
                        K0s.append('<span class="mbsc-slider-step" style="' + (N0s ? 'right' : 'left') + ':' + 100 / z0s * B0s + '%"></span>');
                    }
                }
                q0s.each(function(T0s) {
                    if (this.type == 'range') {
                        U4K(this).attr('min', h0s).attr('max', n0s).attr('step', i0s);
                    }(w0s ? x0s : K0s).append('<span class="mbsc-slider-handle-cont' + (Z0s && !T0s ? ' mbsc-slider-handle-left' : '') + '">' + '<span tabindex="0" class="mbsc-slider-handle" aria-valuemin="' + h0s + '" aria-valuemax="' + n0s + '" data-index="' + T0s + '"></span>' + (O0s ? '<span class="mbsc-slider-tooltip"></span>' : '') + '</span>');
                });
                J0s = L0s.find('.mbsc-slider-tooltip');
            };
            if (!k0s) {
                U2s.init(C0s);
            }
        };
        f4K.prototype = {
            _class: 'progress',
            _css: 'mbsc-progress mbsc-slider',
            _hasTheme: true,
            _hasLang: true,
            _defaults: {
                changeEvent: 'change',
                stopProp: true,
                min: 0,
                max: 100,
                step: 1,
                live: true,
                highlight: true,
                round: true,
                returnAffix: true
            }
        };
        Z2K.classes.Slider = f4K;
        Z2K.presetShort('slider', 'Slider');
        var A2K = Z2K.$;
        var b4K = Z2K.util;
        var I4K = function X0s() {};
        var n0K = Z2K.classes;
        n0K.Color = function(Z5s, A5s, z5s) {
            function P5s(X5s, T5s, a5s, p5s, r5s) {
                if (!r5s) {
                    X4s._value = X4s._hasValue ? X4s._tempValue.slice(0) : null;
                    for (var y5s = 0; y5s < r4s.length; ++y5s) {
                        if (r4s[y5s].tempChangedColor && X4s._value && X4s._value.indexOf(r4s[y5s].tempChangedColor) != -1) {
                            r4s[y5s].changedColor = r4s[y5s].tempChangedColor;
                        }
                        delete r4s[y5s].tempChangedColor;
                    }
                }
                if (X5s) {
                    if (X4s._isInput) {
                        N5s.val(X4s._hasValue ? X4s._tempValue : '');
                    }
                    O5s('onFill', {
                        valueText: X4s._hasValue ? X4s._tempValue : '',
                        change: T5s
                    });
                    if (T5s) {
                        o4s = A2K.extend(true, {}, t4s);
                        X4s._preventChange = true;
                        N5s.trigger('change');
                        R5s(X4s._value);
                    }
                }
            }

            function W5s(I5s, t5s) {
                t5s = t5s !== undefined ? t5s : V5s(I5s);
                return '<div class="mbsc-color-input-item" data-color="' + (t5s !== undefined ? t5s : I5s) + '" style="background: ' + I5s + ';">' + (E4s ? '' : '<div class="mbsc-color-input-item-close mbsc-ic mbsc-ic-material-close"></div>') + '</div>';
            }

            function b5s(E5s) {
                g5s[0].style.background = E5s ? b4K.prefix + 'linear-gradient(left, ' + (a4s.rtl ? '#000000' : '#FFFFFF') + ' 0%, ' + E5s + ' 50%, ' + (a4s.rtl ? '#FFFFFF' : '#000000') + ' 100%)' : '';
            }

            function V5s(u5s) {
                if (Object.keys(t4s).length && !isNaN(u5s)) {
                    return u5s;
                }
                for (var o5s in r4s) {
                    if (u5s == r4s[o5s].color || u5s == r4s[o5s].changedColor) {
                        return o5s;
                    }
                }
            }

            function H5s() {
                if (C5s) {
                    var U5s, c5s = '';
                    s5s.empty();
                    if (X4s._value) {
                        if (E4s) {
                            c5s += W5s(X4s._value, p4s);
                        } else {
                            for (U5s = 0; U5s < X4s._value.length; ++U5s) {
                                c5s += W5s(X4s._value[U5s], Object.keys(t4s).length && t4s[U5s].colorIndex ? t4s[U5s].colorIndex : V5s(X4s._value[U5s]));
                            }
                        }
                        s5s.append(c5s);
                        X4s.tap(A2K('.mbsc-color-input-item', s5s), function(q6s) {
                            if (A2K(q6s.target).hasClass('mbsc-color-input-item-close')) {
                                var N6s = A2K(this).index();
                                q6s.stopPropagation();
                                q6s.preventDefault();
                                if (p4s === undefined) {
                                    p4s = A2K(q6s.target).parent().attr('data-color');
                                }
                                if (u4s) {
                                    I4s = r4s[p4s].previewInd;
                                    c4s.eq(I4s).parent().removeClass('mbsc-color-active');
                                    o4s[N6s] = {};
                                    t4s[N6s] = {};
                                }
                                X4s._value.splice(N6s, 1);
                                X4s.setVal(X4s._value, true, true);
                            } else if (L5s && a4s.display !== 'inline') {
                                D5s = true;
                                p4s = A2K(q6s.target).attr('data-color');
                                if (isNaN(p4s)) {
                                    p4s = V5s(p4s);
                                }
                                if (p4s) {
                                    r4s[p4s].selected = true;
                                    I4s = r4s[p4s].previewInd;
                                    setTimeout(function() {
                                        x5s.scroll(h5s.eq(p4s), 400);
                                        if (u4s) {
                                            i5s.scroll(c4s.eq(I4s), 400);
                                        }
                                    }, 200);
                                }
                            }
                        });
                    }
                }
            }

            function M5s(h6s, n6s) {
                var L6s, s6s = h6s.match(/\d+/gmi);
                switch (true) {
                    case h6s.indexOf('rgb') > -1:
                        L6s = Q4K({
                            r: s6s[0],
                            g: s6s[1],
                            b: s6s[2]
                        });
                        break;
                    case h6s.indexOf('hsl') > -1:
                        L6s = q8K({
                            h: s6s[0],
                            s: s6s[1],
                            l: s6s[2]
                        });
                        break;
                    case h6s.indexOf('hsv') > -1:
                        L6s = Q1K({
                            h: s6s[0],
                            s: s6s[1],
                            v: s6s[2]
                        });
                        break;
                    case h6s.indexOf('#') > -1:
                        L6s = h6s;
                        break;
                }
                return v5s(L6s, n6s || a4s.format);
            }

            function v5s(i6s, x6s) {
                switch (x6s) {
                    case 'rgb':
                        return e4K(i6s);
                    case 'hsl':
                        return w1K(i6s);
                    case 'hsv':
                        return B6K(i6s);
                    default:
                        return i6s;
                }
            }

            function F5s() {
                var w6s;
                for (w6s = 0; w6s < a4s.select; ++w6s) {
                    if (t4s[w6s].colorIndex === undefined) {
                        return w6s;
                    }
                }
            }

            function G5s(K6s, O6s) {
                A2K('.mbsc-color-active', O6s).removeClass('mbsc-color-active');
                if (L5s) {
                    K6s.parent().addClass('mbsc-color-active');
                    if (u4s && K6s) {
                        if (I4s !== undefined) {
                            c4s.eq(I4s).parent().addClass('mbsc-color-active');
                        }
                    }
                }
            }

            function R5s(Z6s, V6s) {
                var S6s, M6s, C6s = [],
                    G6s = 0,
                    j6s = A2K.map(r4s, function(k6s) {
                        return k6s.changedColor || k6s.color;
                    });
                if (E4s) {
                    Z6s = A2K.isArray(Z6s) ? Z6s[0] : Z6s;
                    M6s = j6s.indexOf(Z6s);
                    if (M6s > -1) {
                        C6s.push(M6s);
                    }
                    if (Z6s && !C6s.length) {
                        var J6s = +A2K('.mbsc-color-input-item', s5s).attr('data-color');
                        if (!isNaN(J6s)) {
                            C6s.push(J6s);
                        }
                        p4s = J6s;
                    }
                } else if (Z6s) {
                    if (u4s && L5s) {
                        for (var P6s in o4s) {
                            if (o4s[P6s].colorIndex !== undefined) {
                                C6s.push(+o4s[P6s].colorIndex);
                            }
                        }
                    } else {
                        for (S6s = 0; S6s < Z6s.length; ++S6s) {
                            M6s = j6s.indexOf(Z6s[S6s]);
                            if (M6s > -1) {
                                C6s.push(M6s);
                                j6s[M6s] = 'temp' + S6s;
                            }
                        }
                    }
                }
                for (S6s = 0; S6s < C6s.length; ++S6s) {
                    j5s(true, C6s[S6s], G6s++, r4s[C6s[S6s]].changedColor || r4s[C6s[S6s]].color, true);
                }
                for (S6s = 0; S6s < r4s.length; ++S6s) {
                    if (C6s.indexOf(S6s) == -1) {
                        j5s(false, S6s, undefined, r4s[S6s].changedColor || r4s[S6s].color, false);
                    }
                }
                if (u4s) {
                    for (S6s = G6s; S6s < a4s.select; ++S6s) {
                        t4s[S6s] = {};
                        if (c4s) {
                            c4s.eq(S6s).addClass('mbsc-color-preview-item-empty').css({
                                background: 'transparent'
                            });
                        }
                    }
                }
                o4s = A2K.extend(true, {}, t4s);
                if (V6s !== false) {
                    H5s();
                }
            }

            function j5s(Y6s, m6s, A6s, d6s, W6s, b6s) {
                if (u4s && W6s) {
                    t4s[A6s].colorIndex = Y6s ? m6s : undefined;
                    t4s[A6s].color = Y6s ? d6s : undefined;
                    if (c4s) {
                        var f6s = c4s.eq(A6s);
                        f6s.removeClass('mbsc-color-preview-item-empty').css({
                            background: Y6s ? d6s : 'transparent'
                        });
                        if (!Y6s) {
                            f6s.addClass('mbsc-color-preview-item-empty').parent().removeClass('mbsc-color-active');
                        }
                    }
                }
                if (b6s) {
                    if (Y6s) {
                        X4s._tempValue.splice(A6s, 0, d6s);
                    } else {
                        X4s._tempValue.splice(X4s._tempValue.indexOf(d6s), 1);
                    }
                }
                if (h5s) {
                    if (Y6s) {
                        h5s.eq(m6s).addClass('mbsc-color-selected');
                    } else {
                        h5s.eq(m6s).removeClass('mbsc-color-selected').parent().removeClass('mbsc-color-active');
                    }
                }
                r4s[m6s].previewInd = Y6s ? A6s : undefined;
                r4s[m6s].selected = Y6s;
            }

            function k5s(g6s, R6s) {
                if (g6s !== undefined && (E4s || r4s[g6s].selected)) {
                    p4s = g6s;
                    q5s = r4s[g6s].changedColor || r4s[g6s].color;
                    U4s = h5s.eq(g6s);
                    if (L5s) {
                        G5s(h5s.eq(g6s), R6s || '');
                        K5s = M5s(r4s[g6s].color, 'hsl');
                        K5s.l = M5s(q5s, 'hsl').l;
                        b5s(r4s[g6s].color);
                        S5s.setVal(100 - K5s.l, false, false);
                    }
                } else if (L5s) {
                    b5s();
                }
            }

            function B5s() {
                var Q6s, e6s = [];
                for (Q6s = 0; Q6s < r4s.length; ++Q6s) {
                    if (r4s[Q6s].selected) {
                        e6s.push(r4s[Q6s]);
                    }
                }
                return e6s;
            }

            function d5s(v6s, H6s) {
                var F6s = A2K(v6s.target).index();
                p4s = t4s[F6s].colorIndex;
                U4s = h5s.eq(p4s);
                I4s = F6s;
                k5s(p4s, H6s);
                x5s.scroll(U4s, 250);
                O5s('onPreviewItemTap', {
                    target: v6s.target,
                    value: t4s[F6s].color,
                    index: F6s
                });
            }

            function f5s(z6s, D6s) {
                var l6s = false,
                    B6s = A2K('.mbsc-color-selected', D6s);
                U4s = A2K(z6s.target);
                if (U4s.hasClass('mbsc-color-clear-item')) {
                    q5s = '';
                    X4s.clear();
                    return;
                }
                if ((E4s || Q5s > +B6s.length || U4s.hasClass('mbsc-color-selected'))) {
                    p4s = U4s.attr('data-index');
                    if (u4s) {
                        I4s = r4s[p4s].previewInd !== undefined ? r4s[p4s].previewInd : F5s();
                        l6s = L5s && U4s.hasClass('mbsc-color-selected') && !U4s.parent().hasClass('mbsc-color-active');
                        if (c4s.length > 6) {
                            i5s.scroll(c4s.eq(I4s));
                        }
                    }
                    q5s = r4s[p4s].changedColor || r4s[p4s].color;
                    if (E4s) {
                        B6s.removeClass('mbsc-color-selected');
                        X4s._tempValue = q5s;
                        if (q5s) {
                            U4s.toggleClass('mbsc-color-selected');
                        }
                        G5s(U4s, D6s);
                    } else {
                        G5s(U4s, D6s);
                        if (!l6s) {
                            j5s(!r4s[p4s].selected, p4s, I4s, q5s, true, true);
                        }
                    }
                    k5s(p4s, D6s);
                    if (X4s.live) {
                        X4s._fillValue();
                        O5s('onSet', {
                            value: X4s._value
                        });
                    }
                    O5s('onItemTap', {
                        target: z6s.target,
                        value: q5s,
                        selected: r4s[p4s].selected,
                        index: p4s
                    });
                }
            }
            var a4s, e5s, r4s, l5s, O5s, x5s, i5s, w5s, q5s, K5s, D5s, n5s, u4s, g5s, L5s, m5s, S5s, p4s, C5s, E4s, Q5s, Y5s, s5s, h5s, c4s, U4s, J5s, X4s = this,
                N5s = A2K(Z5s),
                I4s = 0,
                o4s = {},
                t4s = {};
            n0K.Frame.call(this, Z5s, A5s, true);
            X4s.setVal = X4s._setVal = function(y6s, T6s, X6s, r6s) {
                X4s._hasValue = y6s !== null && y6s !== undefined;
                X4s._tempValue = E4s ? A2K.isArray(y6s) ? y6s[0] : y6s : A2K.isArray(y6s) ? y6s : [y6s];
                P5s(T6s, true, X6s === undefined ? T6s : X6s, r6s);
            };
            X4s.getVal = X4s._getVal = function(a6s) {
                return X4s._hasValue || a6s ? Y5s ? B5s() : X4s[a6s ? '_tempValue' : '_value'] : null;
            };
            X4s._readValue = function() {
                var p6s = N5s.val() || '';
                X4s._hasValue = false;
                if (p6s.length !== 0 && p6s !== '') {
                    X4s._hasValue = true;
                }
                if (X4s._hasValue) {
                    X4s._tempValue = E4s ? p6s : a4s.format == 'hex' ? p6s.split(',') : p6s.match(/[a-z]{3}\((\d+\.?\d{0,}?),\s*([\d.]+)%{0,},\s*([\d.]+)%{0,}\)/gmi);
                    P5s(true);
                } else {
                    X4s._tempValue = [];
                }
                R5s(X4s._tempValue, X4s._hasValue);
            };
            X4s._fillValue = function() {
                X4s._hasValue = true;
                P5s(true, true, 0, true);
            };
            X4s._generateContent = function() {
                var t6s, I6s, o6s, E6s = w5s ? 1 : 0;
                m5s = n5s ? Math.ceil((r4s.length + E6s) / a4s.rows) : a4s.rows;
                I6s = '<div class="mbsc-color-scroll-cont mbsc-w-p ' + (n5s ? '' : 'mbsc-color-vertical') + '"><div class="mbsc-color-cont">' + (n5s ? '<div class="mbsc-color-row">' : '');
                for (t6s = 0; t6s < r4s.length; ++t6s) {
                    o6s = r4s[t6s].changedColor || r4s[t6s].color;
                    if (w5s && t6s === 0) {
                        I6s += '<div class="mbsc-color-item-c"><div tabindex="0" class="mbsc-color-clear-item mbsc-btn-e mbsc-color-selected"><div class="mbsc-color-clear-cross"></div></div></div>';
                    }
                    if (t6s !== 0 && (t6s + E6s) % m5s === 0) {
                        I6s += n5s ? '</div><div class="mbsc-color-row">' : '';
                    }
                    I6s += '<div class="mbsc-color-item-c"><div tabindex="0" data-index="' + t6s + '" class="mbsc-color-item mbsc-btn-e mbsc-ic mbsc-ic-material-check mbsc-color-btn-e ' + (r4s[t6s].selected ? 'mbsc-color-selected' : '') + '"  style="background:' + o6s + '"></div></div>';
                }
                I6s += '</div></div>' + (n5s ? '</div>' : '');
                if (L5s) {
                    I6s += '<div class="mbsc-color-slider-cont"><input class="mbsc-color-slider" type="range" data-highlight="false" value="50" min="0" max="100"/></div>';
                }
                if (u4s) {
                    I6s += '<div class="mbsc-color-preview-cont"><div class="mbsc-color-refine-preview">';
                    for (var u6s in o4s) {
                        I6s += '<div class="mbsc-color-preview-item-c mbsc-btn-e mbsc-color-btn-e" tabindex="0"><div class="mbsc-color-preview-item ' + (o4s[u6s].color ? '' : 'mbsc-color-preview-item-empty') + '" style="background: ' + (o4s[u6s].color || 'initial') + ';"></div></div>';
                    }
                    I6s += '</div></div>';
                }
                return I6s;
            };
            X4s._position = function(q1s) {
                var U6s, c6s;
                if (!n5s) {
                    U6s = q1s.find('.mbsc-color-cont');
                    c6s = Math.ceil(U6s.find('.mbsc-color-item-c')[0].offsetWidth);
                    U6s.width(Math.min(Math.floor(q1s.find('.mbsc-fr-c').width() / c6s), Math.round(r4s.length / a4s.rows)) * c6s + 1);
                }
                if (x5s) {
                    x5s.refresh();
                }
                if (i5s) {
                    i5s.refresh();
                }
            };
            X4s._markupInserted = function(N1s) {
                if (!n5s) {
                    N1s.find('.mbsc-color-scroll-cont').css('max-height', N1s.find('.mbsc-color-item-c')[0].offsetHeight * a4s.rows);
                }
                x5s = new n0K.ScrollView(N1s.find('.mbsc-color-scroll-cont')[0], {
                    axis: n5s ? 'X' : 'Y',
                    rtl: a4s.rtl,
                    elastic: 60,
                    stopProp: false,
                    mousewheel: a4s.mousewheel,
                    onBtnTap: function s1s(h1s) {
                        f5s(h1s, N1s);
                    }
                });
            };
            X4s._attachEvents = function(L1s) {
                var n1s;
                h5s = A2K('.mbsc-color-item', L1s);
                L1s.on('keydown', '.mbsc-color-btn-e', function(i1s) {
                    i1s.stopPropagation();
                    if (i1s.keyCode == 32) {
                        if (i1s.target.classList.contains('mbsc-color-item')) {
                            f5s(i1s, L1s);
                        } else {
                            d5s(i1s, L1s);
                        }
                    }
                });
                if (u4s) {
                    c4s = A2K('.mbsc-color-preview-item', L1s);
                }
                if (L5s) {
                    L1s.addClass('mbsc-color-refine');
                    J5s = A2K('.mbsc-color-slider', L1s);
                    S5s = new n0K.Slider(J5s[0], {
                        theme: a4s.theme,
                        rtl: a4s.rtl
                    });
                    g5s = L1s.find('.mbsc-progress-track');
                    if (p4s && X4s._value) {
                        k5s(p4s, L1s);
                    }
                    J5s.on('change', function() {
                        if (p4s !== undefined && (E4s || r4s[p4s].selected)) {
                            K5s.l = 100 - this.value;
                            n1s = M5s(K5s.toString()).toString();
                            if (E4s) {
                                X4s._tempValue = n1s;
                            } else {
                                X4s._tempValue[I4s !== undefined ? I4s : X4s._tempValue.length] = n1s;
                            }
                            r4s[p4s].tempChangedColor = n1s;
                            h5s.eq(p4s).css('background', n1s);
                            if (u4s) {
                                t4s[I4s].color = n1s;
                                c4s.eq(I4s).removeClass('mbsc-color-preview-item-empty').css({
                                    'background': n1s
                                });
                            }
                            if (X4s.live) {
                                b4K.throttle(X4s._fillValue());
                            }
                        }
                    });
                }
                if (u4s) {
                    i5s = new n0K.ScrollView(L1s.find('.mbsc-color-preview-cont')[0], {
                        axis: 'X',
                        rtl: a4s.rtl,
                        mousewheel: a4s.mousewheel,
                        onBtnTap: function x1s(w1s) {
                            d5s(w1s, L1s);
                        }
                    });
                }
            };
            X4s._detachEvents = function() {
                x5s.destroy();
                if (S5s) {
                    S5s.destroy();
                }
                if (i5s) {
                    i5s.destroy();
                }
            };
            X4s.__processSettings = function() {
                var K1s, O1s;
                a4s = X4s.settings;
                l5s = a4s.format;
                O5s = X4s.trigger;
                n5s = a4s.navigation == 'horizontal';
                X4s._value = [];
                X4s._tempValue = [];
                E4s = a4s.select == 'single';
                w5s = a4s.clear !== undefined ? a4s.clear : E4s;
                O1s = a4s.data || [];
                if (!O1s.length) {
                    switch (a4s.format) {
                        case 'rgb':
                            O1s = ["rgb(255,235,60)", "rgb(255,153,0)", "rgb(244,68,55)", "rgb(234,30,99)", "rgb(156,38,176)", "rgb(104,58,183)", "rgb(63,81,181)", "rgb(33,150,243)", "rgb(0,151,136)", "rgb(75,175,79)", "rgb(126,93,78)", "rgb(158,158,158)"];
                            if (w5s) {
                                O1s.splice(10, 0, 'rgb(83, 71, 65)');
                            }
                            break;
                        case 'hsl':
                            O1s = ["hsl(54,100%,62%)", "hsl(36,100%,50%)", "hsl(4,90%,59%)", "hsl(340,83%,52%)", "hsl(291,64%,42%)", "hsl(262,52%,47%)", "hsl(231,48%,48%)", "hsl(207,90%,54%)", "hsl(174,100%,30%)", "hsl(122,40%,49%)", "hsl(19,24%,40%)", "hsl(0,0%,62%)"];
                            if (w5s) {
                                O1s.splice(10, 0, 'hsl(20, 12%, 29%)');
                            }
                            break;
                        default:
                            O1s = ['#ffeb3c', '#ff9900', '#f44437', '#ea1e63', '#9c26b0', '#683ab7', '#3f51b5', '#2196f3', '#009788', '#4baf4f', '#7e5d4e', '#9e9e9e'];
                            if (w5s) {
                                O1s.splice(10, 0, '#534741');
                            }
                    }
                }
                L5s = a4s.mode == 'refine';
                u4s = !isNaN(a4s.select);
                Q5s = isNaN(a4s.select) ? E4s ? 2 : O1s.length : a4s.select;
                Y5s = A2K.isPlainObject(O1s[0]);
                if (u4s && !Object.keys(o4s).length) {
                    for (K1s = 0; K1s < a4s.select; ++K1s) {
                        o4s[K1s] = {};
                        t4s[K1s] = {};
                    }
                }
                if (!r4s) {
                    r4s = O1s.slice(0);
                    for (K1s = 0; K1s < r4s.length; ++K1s) {
                        if (!A2K.isPlainObject(O1s[K1s])) {
                            O1s[K1s] = O1s[K1s].toLowerCase();
                            r4s[K1s] = {
                                key: K1s,
                                name: O1s[K1s],
                                color: O1s[K1s]
                            };
                        } else {
                            r4s[K1s].color = O1s[K1s].color;
                        }
                    }
                }
                e5s = a4s.defaultValue || r4s[0].color;
                q5s = e5s;
                K5s = M5s(q5s, 'hsl');
                C5s = a4s.enhance && N5s.is('input');
                if (C5s) {
                    if (N5s.hasClass('mbsc-color-input-hdn')) {
                        s5s = N5s.prev();
                    } else {
                        s5s = A2K('<div ' + (Z5s.placeholder ? 'data-placeholder="' + Z5s.placeholder + '"' : '') + ' class="mbsc-control mbsc-color-input ' + (a4s.inputClass || '') + '" readonly ></div>');
                        s5s.insertBefore(N5s);
                        N5s.addClass('mbsc-color-input-hdn').attr('tabindex', -1);
                    }
                    a4s.anchor = s5s;
                    X4s.attachShow(s5s);
                }
            };
            X4s.__init = function() {
                a4s.cssClass = (a4s.cssClass || '') + ' mbsc-color';
            };
            X4s.__destroy = function() {
                if (C5s) {
                    N5s.removeClass('mbsc-color-input-hdn');
                    s5s.remove();
                }
            };
            if (!z5s) {
                X4s.init(A5s);
            }
        };
        n0K.Color.prototype = {
            _hasDef: true,
            _hasTheme: true,
            _hasLang: true,
            _class: 'color',
            _defaults: A2K.extend({}, n0K.Frame.prototype._defaults, {
                headerText: false,
                validate: I4K,
                parseValue: I4K,
                enhance: true,
                rows: 2,
                select: 'single',
                format: 'hex',
                navigation: 'horizontal'
            })
        };
        Z2K.themes.color = Z2K.themes.frame;
        Z2K.presetShort('color', 'Color', false);
        b4K.color = {
            hsv2hex: Q1K,
            hsv2rgb: F6K,
            rgb2hsv: Z6K,
            rgb2hex: Q4K,
            rgb2hsl: n6K,
            hex2rgb: e4K,
            hex2hsv: B6K,
            hex2hsl: w1K
        };
        J2K.module('mobiscroll-color', []).directive('mobiscrollColor', ['$parse', function(S1s) {
            return Z2K.ng.getDDO(S1s, 'mobiscrollColor', {
                component: 'Color'
            });
        }]);
        Z2K.$.each(['date', 'time', 'datetime'], function(Z1s, C1s) {
            Z2K.presetShort(C1s);
        });
        J2K.module('mobiscroll-datetime', []).directive('mobiscrollDatetime', ['$parse', function(M1s) {
            return Z2K.ng.getDDO(M1s, 'mobiscrollDatetime', {
                preset: 'datetime'
            });
        }]).directive('mobiscrollDate', ['$parse', function(j1s) {
            return Z2K.ng.getDDO(j1s, 'mobiscrollDate', {
                preset: 'date'
            });
        }]).directive('mobiscrollTime', ['$parse', function(J1s) {
            return Z2K.ng.getDDO(J1s, 'mobiscrollTime', {
                preset: 'time'
            });
        }]);
        var d2K = Z2K.$;
        var o2K = d2K.extend;
        var Y6K = Z2K.util;
        var O4K = Y6K.datetime;
        var v6K = O4K.adjustedDate;
        var A5K = Z2K.presets.scroller;
        var o6K = {
            labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs'],
            eventText: 'event',
            eventsText: 'events'
        };
        Z2K.presetShort('eventcalendar');
        A5K.eventcalendar = function(G1s) {
            function a1s(E1s) {
                if (E1s) {
                    if (g1s[E1s]) {
                        return g1s[E1s];
                    }
                    var u1s = d2K('<div style="background-color:' + E1s + ';"></div>').appendTo('body'),
                        c1s = window.getComputedStyle ? getComputedStyle(u1s[0]) : u1s[0].style,
                        o1s = c1s.backgroundColor.replace(/rgb|rgba|\(|\)|\s/g, '').split(','),
                        q8s = o1s[0] * 0.299 + o1s[1] * 0.587 + o1s[2] * 0.114,
                        U1s = q8s > 130 ? '#000' : '#fff';
                    u1s.remove();
                    g1s[E1s] = U1s;
                    return U1s;
                }
            }

            function p1s(x8s) {
                var N8s = P1s.labelsShort,
                    h8s = Math.abs(x8s) / 1000,
                    L8s = h8s / 60,
                    n8s = L8s / 60,
                    s8s = n8s / 24,
                    i8s = s8s / 365;
                return h8s < 45 && Math.round(h8s) + ' ' + N8s[5].toLowerCase() || L8s < 45 && Math.round(L8s) + ' ' + N8s[4].toLowerCase() || n8s < 24 && Math.round(n8s) + ' ' + N8s[3].toLowerCase() || s8s < 30 && Math.round(s8s) + ' ' + N8s[2].toLowerCase() || s8s < 365 && Math.round(s8s / 30) + ' ' + N8s[1].toLowerCase() || Math.round(i8s) + ' ' + N8s[0].toLowerCase();
            }

            function X1s(w8s) {
                return w8s.sort(function(K8s, O8s) {
                    var S8s = K8s.d || K8s.start,
                        C8s = O8s.d || O8s.start,
                        Z8s = !S8s.getTime ? 0 : K8s.start && K8s.end && K8s.start.toDateString() !== K8s.end.toDateString() ? 1 : S8s.getTime(),
                        M8s = !C8s.getTime ? 0 : O8s.start && O8s.end && O8s.start.toDateString() !== O8s.end.toDateString() ? 1 : C8s.getTime();
                    return Z8s - M8s;
                });
            }

            function T1s(j8s) {
                var P8s, V8s = d2K('.mbsc-cal-c', A1s)[0].offsetHeight,
                    k8s = j8s[0].offsetHeight,
                    Y8s = j8s[0].offsetWidth,
                    G8s = j8s.offset().top - d2K('.mbsc-cal-c', A1s).offset().top,
                    J8s = j8s.closest('.mbsc-cal-row').index() < 2;
                P8s = V1s.addClass('mbsc-cal-events-t').css({
                    top: J8s ? G8s + k8s : '0',
                    bottom: J8s ? '0' : V8s - G8s
                }).addClass('mbsc-cal-events-v').height();
                V1s.css(J8s ? 'bottom' : 'top', 'auto').removeClass('mbsc-cal-events-t');
                Q1s.css('max-height', P8s);
                m1s.refresh();
                m1s.scroll(0);
                if (J8s) {
                    V1s.addClass('mbsc-cal-events-b');
                } else {
                    V1s.removeClass('mbsc-cal-events-b');
                }
                d2K('.mbsc-cal-events-arr', V1s).css('left', j8s.offset().left - V1s.offset().left + Y8s / 2);
            }

            function r1s(Q8s, R8s) {
                var m8s = f1s[Q8s];
                if (m8s) {
                    var W8s, d8s, g8s, A8s, b8s, e8s, f8s = '<ul class="mbsc-cal-event-list">';
                    I1s = 0;
                    Y1s = R8s;
                    R8s.addClass(B1s).find('.mbsc-cal-day-i').addClass(l1s);
                    if (R8s.hasClass(e1s)) {
                        R8s.attr('data-hl', 'true').removeClass(e1s);
                    }
                    X1s(m8s);
                    d2K.each(m8s, function(v8s, F8s) {
                        A8s = F8s.d || F8s.start;
                        b8s = F8s.start && F8s.end && F8s.start.toDateString() !== F8s.end.toDateString();
                        g8s = F8s.color;
                        e8s = a1s(g8s);
                        W8s = '';
                        d8s = '';
                        if (A8s.getTime) {
                            W8s = O4K.formatDate((b8s ? 'MM d yy ' : '') + P1s.timeFormat, A8s);
                        }
                        if (F8s.end) {
                            d8s = O4K.formatDate((b8s ? 'MM d yy ' : '') + P1s.timeFormat, F8s.end);
                        }
                        f8s += '<li role="button" aria-label="' + F8s.text + (W8s ? ', ' + P1s.fromText + ' ' + W8s : '') + (d8s ? ', ' + P1s.toText + ' ' + d8s : '') + '" class="mbsc-cal-event">' + '<div class="mbsc-cal-event-color" style="' + (g8s ? 'background:' + g8s + ';' : '') + '"></div>' + '<div class="mbsc-cal-event-text">' + (A8s.getTime && !b8s ? '<div class="mbsc-cal-event-time">' + O4K.formatDate(P1s.timeFormat, A8s) + '</div>' : '') + F8s.text + '</div>' + (F8s.start && F8s.end ? '<div class="mbsc-cal-event-dur">' + p1s(F8s.end - F8s.start) + '</div>' : '') + '</li>';
                    });
                    f8s += '</ul>';
                    D1s.html(f8s);
                    G1s.trigger('onEventBubbleShow', {
                        target: Y1s[0],
                        eventList: V1s[0]
                    });
                    T1s(Y1s);
                    G1s.tap(d2K('.mbsc-cal-event', D1s), function(H8s) {
                        if (!m1s.scrolled) {
                            G1s.trigger('onEventSelect', {
                                domEvent: H8s,
                                event: m8s[d2K(this).index()],
                                date: Q8s
                            });
                        }
                    });
                    F1s = true;
                }
            }

            function W1s() {
                if (V1s) {
                    V1s.removeClass('mbsc-cal-events-v');
                }
                if (Y1s) {
                    Y1s.removeClass(B1s).find('.mbsc-cal-day-i').removeClass(l1s);
                    if (Y1s.attr('data-hl')) {
                        Y1s.removeAttr('data-hl').addClass(e1s);
                    }
                }
                F1s = false;
            }

            function H1s() {
                W1s();
                G1s.redraw();
            }

            function t1s(D8s) {
                return v6K(D8s.getFullYear(), D8s.getMonth(), D8s.getDate());
            }
            var z1s, A1s, V1s, Y1s, f1s, m1s, Q1s, D1s, F1s, I1s, v1s, b1s, g1s = {},
                y1s = o2K({}, G1s.settings),
                P1s = o2K(G1s.settings, o6K, y1s),
                B1s = 'mbsc-cal-day-sel mbsc-cal-day-ev',
                e1s = 'mbsc-cal-day-hl',
                l1s = P1s.activeClass || '',
                d1s = P1s.showEventCount,
                R1s = 0,
                k1s = o2K(true, [], P1s.data);
            v1s = A5K.calbase.call(this, G1s);
            z1s = o2K({}, v1s);
            d2K.each(k1s, function(B8s, l8s) {
                if (l8s._id === undefined) {
                    l8s._id = R1s++;
                }
            });
            G1s.onGenMonth = function(z8s, y8s) {
                f1s = G1s.prepareObj(k1s, z8s, y8s);
            };
            G1s.getDayProps = function(t8s) {
                var X8s, T8s = f1s[t8s] ? f1s[t8s] : false,
                    r8s = T8s ? f1s[t8s].length + ' ' + (f1s[t8s].length > 1 ? P1s.eventsText : P1s.eventText) : 0,
                    I8s = T8s && T8s[0] && T8s[0].color,
                    E8s = d1s && r8s ? a1s(I8s) : '',
                    a8s = '',
                    p8s = '';
                if (T8s) {
                    for (X8s = 0; X8s < T8s.length; X8s++) {
                        if (T8s[X8s].icon) {
                            a8s += '<span class="mbsc-ic mbsc-ic-' + T8s[X8s].icon + '"' + (T8s[X8s].text ? '' : T8s[X8s].color ? ' style="color:' + T8s[X8s].color + ';"' : '') + '></span>\n';
                        }
                    }
                    p8s = '<div class="mbsc-cal-day-m"><div class="mbsc-cal-day-m-t">';
                    for (X8s = 0; X8s < T8s.length; X8s++) {
                        p8s += '<div class="mbsc-cal-day-m-c"' + (T8s[X8s].color ? ' style="background:' + T8s[X8s].color + ';"' : '') + '></div>';
                    }
                    p8s += '</div></div>';
                }
                return {
                    marked: T8s,
                    selected: false,
                    cssClass: T8s ? 'mbsc-cal-day-marked' : '',
                    ariaLabel: d1s ? r8s : '',
                    markup: d1s && r8s ? '<div class="mbsc-cal-day-txt-c"><div class="mbsc-cal-day-txt" title="' + d2K('<div>' + r8s + '</div>').text() + '"' + (I8s ? ' style="background:' + I8s + ';color:' + E8s + ';text-shadow:none;"' : '') + '>' + a8s + r8s + '</div></div>' : d1s && a8s ? '<div class="mbsc-cal-day-ic-c">' + a8s + '</div>' : T8s ? p8s : ''
                };
            };
            G1s.addEvent = function(u8s) {
                var o8s = [];
                u8s = o2K(true, [], d2K.isArray(u8s) ? u8s : [u8s]);
                d2K.each(u8s, function(c8s, U8s) {
                    if (U8s._id === undefined) {
                        U8s._id = R1s++;
                    }
                    k1s.push(U8s);
                    o8s.push(U8s._id);
                });
                H1s();
                return o8s;
            };
            G1s.removeEvent = function(q9s) {
                q9s = d2K.isArray(q9s) ? q9s : [q9s];
                d2K.each(q9s, function(s9s, N9s) {
                    d2K.each(k1s, function(h9s, L9s) {
                        if (L9s._id === N9s) {
                            k1s.splice(h9s, 1);
                            return false;
                        }
                    });
                });
                H1s();
            };
            G1s.getEvents = function(n9s) {
                var i9s;
                if (n9s) {
                    n9s.setHours(0, 0, 0, 0);
                    i9s = G1s.prepareObj(k1s, n9s.getFullYear(), n9s.getMonth());
                    return i9s[n9s] ? X1s(i9s[n9s]) : [];
                }
                return o2K(true, [], k1s);
            };
            G1s.setEvents = function(w9s) {
                var x9s = [];
                k1s = o2K(true, [], w9s);
                d2K.each(k1s, function(O9s, K9s) {
                    if (K9s._id === undefined) {
                        K9s._id = R1s++;
                    }
                    x9s.push(K9s._id);
                });
                H1s();
                return x9s;
            };
            o2K(v1s, {
                highlight: false,
                outerMonthChange: false,
                headerText: false,
                buttons: P1s.display !== 'inline' ? ['close'] : P1s.buttons,
                onMarkupReady: function S9s(C9s) {
                    z1s.onMarkupReady.call(this, C9s);
                    A1s = d2K(C9s.target);
                    if (d1s) {
                        d2K('.mbsc-cal', A1s).addClass('mbsc-cal-ev');
                    }
                    A1s.addClass('mbsc-cal-em');
                    V1s = d2K('<div class="mbsc-cal-events ' + (P1s.eventBubbleClass || '') + '"><div class="mbsc-cal-events-arr"></div><div class="mbsc-cal-events-i"><div class="mbsc-cal-events-sc"></div></div></div>').appendTo(d2K('.mbsc-cal-c', A1s));
                    Q1s = d2K('.mbsc-cal-events-i', V1s);
                    D1s = d2K('.mbsc-cal-events-sc', V1s);
                    m1s = new Z2K.classes.ScrollView(Q1s[0]);
                    F1s = false;
                    G1s.tap(Q1s, function() {
                        if (!m1s.scrolled) {
                            W1s();
                        }
                    });
                },
                onMonthChange: function Z9s() {
                    W1s();
                },
                onSelectShow: function M9s() {
                    W1s();
                },
                onMonthLoaded: function j9s() {
                    if (b1s) {
                        r1s(b1s.d, d2K('.mbsc-cal-day-v[data-full="' + b1s.full + '"]:not(.mbsc-cal-day-diff)', A1s));
                        b1s = false;
                    }
                },
                onDayChange: function J9s(V9s) {
                    var k9s = V9s.date,
                        P9s = t1s(k9s),
                        G9s = d2K(V9s.target);
                    W1s();
                    if (!G9s.hasClass('mbsc-cal-day-ev')) {
                        setTimeout(function() {
                            if (G1s.changing) {
                                b1s = {
                                    d: P9s,
                                    full: G9s.attr('data-full')
                                };
                            } else {
                                r1s(P9s, G9s);
                            }
                        }, 10);
                    }
                    return false;
                },
                onCalResize: function Y9s() {
                    if (F1s) {
                        T1s(Y1s);
                    }
                },
                onHide: function m9s() {
                    z1s.onHide.call(G1s);
                    if (m1s) {
                        m1s.destroy();
                    }
                }
            });
            return v1s;
        };
        J2K.module('mobiscroll-eventcalendar', []).directive('mobiscrollEventcalendar', ['$parse', function(A9s) {
            return {
                restrict: 'A',
                link: function d9s(f9s, g9s, b9s) {
                    var W9s = new Z2K.classes.Scroller(g9s[0], J2K.extend({}, f9s.$eval(b9s.mobiscrollEventcalendar || '{}'), {
                        preset: 'eventcalendar',
                        data: []
                    }));
                    if (b9s.mobiscrollInstance) {
                        A9s(b9s.mobiscrollInstance).assign(f9s, W9s);
                    }
                    f9s.$watch(function() {
                        return A9s(b9s.mobiscrollData)(f9s);
                    }, function(R9s) {
                        if (R9s !== undefined && !J2K.equals(W9s.getEvents(), R9s)) {
                            W9s.setEvents(R9s);
                        }
                    }, true);
                    f9s.$on('$destroy', function() {
                        W9s.destroy();
                    });
                }
            };
        }]);
        var U2K = Z2K.$;
        var H0K = Z2K.classes;
        var a4K = function Q9s(D9s, l9s) {
            var F9s = '',
                H9s = U2K(D9s),
                v9s = this,
                e9s = v9s.settings;
            H0K.Base.call(this, D9s, l9s, true);
            v9s._init = function() {
                var y9s = e9s.context,
                    B9s = U2K(y9s),
                    T9s = B9s.find('.mbsc-ms-top .mbsc-ms'),
                    X9s = B9s.find('.mbsc-ms-bottom .mbsc-ms'),
                    z9s = {};
                if (y9s == 'body') {
                    U2K('body,html').addClass('mbsc-page-ctx');
                } else {
                    B9s.addClass('mbsc-page-ctx');
                }
                if (F9s) {
                    H9s.removeClass(F9s);
                }
                if (T9s.length) {
                    z9s.paddingTop = T9s[0].offsetHeight;
                }
                if (X9s.length) {
                    z9s.paddingBottom = X9s[0].offsetHeight;
                }
                F9s = 'mbsc-page mbsc-' + e9s.theme + (e9s.baseTheme ? ' mbsc-' + e9s.baseTheme : '') + (e9s.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
                H9s.addClass(F9s).css(z9s);
            };
            v9s._destroy = function() {
                H9s.removeClass(F9s);
            };
            e9s = v9s.settings;
            v9s.init(l9s);
        };
        a4K.prototype = {
            _hasDef: true,
            _hasTheme: true,
            _hasLang: true,
            _class: 'page',
            _defaults: {
                context: 'body'
            }
        };
        H0K.Page = a4K;
        Z2K.themes.page.mobiscroll = {};
        Z2K.presetShort('page', 'Page');
        U2K(function() {
            var r9s = '[mbsc-page]';
            U2K(r9s).each(function() {
                new H0K.Page(this);
            });
            U2K(document).on('mbsc-enhance', function(a9s, p9s) {
                if (U2K(a9s.target).is(r9s)) {
                    new H0K.Page(a9s.target, p9s);
                } else {
                    U2K(r9s, a9s.target).each(function() {
                        new H0K.Page(this, p9s);
                    });
                }
            });
        });
        J2K.module('mobiscroll-page', []).directive('mobiscrollPage', ['$parse', function(t9s) {
            return {
                restrict: 'A',
                link: function I9s(E9s, U9s, u9s) {
                    var o9s = new Z2K.classes.Page(U9s[0], Z2K.ng.getOpt(E9s, u9s, 'mobiscrollPage', true));
                    if (u9s.mobiscrollInstance) {
                        t9s(u9s.mobiscrollInstance).assign(E9s, o9s);
                    }
                    E9s.$on('$destroy', function() {
                        o9s.destroy();
                    });
                }
            };
        }]);
        var h0K = Z2K.$;
        var Y0K = function c9s(n7L, i7L, w7L) {
            function x7L(K7L) {
                if (!h0K('.mbsc-fr-c', K7L).hasClass('mbsc-wdg-c')) {
                    h0K('.mbsc-fr-c', K7L).addClass('mbsc-wdg-c').append(s7L.show());
                    if (!h0K('.mbsc-w-p', K7L).length) {
                        h0K('.mbsc-fr-c', K7L).addClass('mbsc-w-p');
                    }
                }
            }
            var q7L, h7L, L7L, s7L = h0K(n7L),
                N7L = this;
            p2K.call(this, n7L, i7L, true);
            N7L._generateContent = function() {
                return '';
            };
            N7L._markupReady = function(O7L) {
                if (q7L.display != 'inline') {
                    x7L(O7L);
                }
            };
            N7L._markupInserted = function(S7L) {
                if (q7L.display == 'inline') {
                    x7L(S7L);
                }
                S7L.trigger('mbsc-enhance', [{
                    theme: q7L.theme,
                    lang: q7L.lang
                }]);
            };
            N7L._markupRemove = function() {
                s7L.hide();
                if (h7L) {
                    h7L.prepend(s7L);
                } else {
                    L7L.after(s7L);
                }
            };
            N7L.__processSettings = function() {
                q7L = N7L.settings;
                N7L.buttons.ok = {
                    text: q7L.okText,
                    icon: q7L.okIcon,
                    handler: 'set'
                };
                q7L.buttons = q7L.buttons || (q7L.display == 'inline' ? [] : ['ok']);
                if (!h7L && !L7L) {
                    L7L = s7L.prev();
                    if (!L7L.length) {
                        h7L = s7L.parent();
                    }
                }
                s7L.hide();
            };
            N7L.__init = function() {
                q7L.cssClass = (q7L.cssClass || '') + ' mbsc-wdg';
            };
            if (!w7L) {
                N7L.init(i7L);
            }
        };
        Y0K.prototype = {
            _hasDef: true,
            _hasTheme: true,
            _hasContent: true,
            _class: 'widget',
            _defaults: h0K.extend({}, p2K.prototype._defaults, {
                okText: 'OK',
                headerText: false
            })
        };
        Z2K.classes.Widget = Y0K;
        Z2K.themes.widget = Z2K.themes.frame;
        Z2K.presetShort('widget', 'Widget', false);
        var i6K = !!window.Promise;
        var c2K = [];
        var Z0K = [];
        var p4K = Z2K.$;
        var H6K = p4K.extend;
        Z2K.alert = function(K3L) {
            var w3L = document.createElement('div');
            w3L.innerHTML = E4K(K3L);
            return q4K(o1K, w3L, K3L);
        };
        Z2K.confirm = function(S3L) {
            var O3L = document.createElement('div');
            O3L.innerHTML = E4K(S3L);
            return q4K(u1K, O3L, S3L);
        };
        Z2K.prompt = function(C3L) {
            var Z3L = document.createElement('div');
            Z3L.innerHTML = E4K(C3L) + '<label class="mbsc-input">' + (C3L.label ? '<span class="mbsc-label">' + C3L.label + '</span>' : '') + '<input type="' + (C3L.inputType || 'text') + '" placeholder="' + (C3L.placeholder || '') + '" value="' + (C3L.value || '') + '">' + '</label>';
            return q4K(X1K, Z3L, C3L);
        };
        Z2K.snackbar = function(M3L) {
            var j3L = document.createElement('div');
            j3L.innerHTML = '<div class="mbsc-snackbar-cont"><div class="mbsc-snackbar-msg">' + (M3L.message || '') + '</div>' + (M3L.button ? '<button class="mbsc-snackbar-btn mbsc-btn mbsc-btn-flat">' + (M3L.button.text || '') + '</button>' : '') + '</div>';
            return q4K(A1K, j3L, M3L);
        };
        Z2K.toast = function(G3L) {
            var J3L = document.createElement('div');
            J3L.innerHTML = '<div class="mbsc-toast-msg">' + (G3L.message || '') + '</div>';
            return q4K(I1K, J3L, G3L);
        };
        var c4K = Z2K.$;
        var q5K = c4K.extend;
        var m4K = Z2K.util;
        var E0K = m4K.getCoord;
        var S6K = m4K.testTouch;
        var N5K = ['touchstart', 'touchmove', 'touchend', 'touchcancel', 'mousedown', 'mousemove', 'mouseup', 'mouseleave'];
        var j6K = {
            tap: true
        };
        var e0K = void 0;
        var A0K = function() {
            function d3L(g3L, F3L) {
                var e3L = this;
                E2K(this, d3L);
                var R3L = q5K({}, j6K, F3L);
                var f3L = c4K(g3L);
                var W3L = f3L.parent();
                var b3L = f3L.next().hasClass('mbsc-fr') ? f3L.next() : null;
                var Q3L = G6K(f3L);
                if (b3L) {
                    b3L.insertAfter(W3L);
                }
                K6K(W3L, Q3L);
                f3L.addClass('mbsc-control');
                N5K.forEach(function(v3L) {
                    g3L.addEventListener(v3L, e3L);
                });
                this.settings = R3L;
                this._type = Q3L;
                this._elm = g3L;
                this._$elm = f3L;
                this._$parent = W3L;
                this._$frame = b3L;
                this._ripple = P6K(R3L.theme);
            }
            S4K(d3L, [{
                key: 'destroy',
                value: function H3L() {
                    var D3L = this;
                    this._$elm.removeClass('mbsc-control');
                    N5K.forEach(function(l3L) {
                        D3L._elm.removeEventListener(l3L, D3L);
                    });
                }
            }, {
                key: 'option',
                value: function B3L(z3L) {
                    q5K(this.settings, z3L);
                    this._ripple = P6K(this.settings.theme);
                }
            }, {
                key: 'handleEvent',
                value: function y3L(T3L) {
                    switch (T3L.type) {
                        case 'touchstart':
                        case 'mousedown':
                            this._onStart(T3L);
                            break;
                        case 'touchmove':
                        case 'mousemove':
                            this._onMove(T3L);
                            break;
                        case 'touchend':
                        case 'touchcancel':
                        case 'mouseup':
                        case 'mouseleave':
                            this._onEnd(T3L);
                    }
                }
            }, {
                key: '_addRipple',
                value: function X3L(r3L) {
                    if (this._ripple && this._$rippleElm) {
                        this._ripple.addRipple(this._$rippleElm, r3L);
                    }
                }
            }, {
                key: '_removeRipple',
                value: function a3L() {
                    if (this._ripple && this._$rippleElm) {
                        this._ripple.removeRipple();
                    }
                }
            }, {
                key: '_onStart',
                value: function p3L(t3L) {
                    var I3L = this._elm;
                    if (S6K(t3L, I3L)) {
                        this._startX = E0K(t3L, 'X');
                        this._startY = E0K(t3L, 'Y');
                        if (e0K) {
                            e0K.removeClass('mbsc-active');
                        }
                        if (!I3L.disabled) {
                            this._isActive = true;
                            e0K = this._$elm;
                            e0K.addClass('mbsc-active');
                            this._addRipple(t3L);
                        }
                    }
                }
            }, {
                key: '_onMove',
                value: function E3L(u3L) {
                    if (this._isActive && Math.abs(E0K(u3L, 'X') - this._startX) > 9 || Math.abs(E0K(u3L, 'Y') - this._startY) > 9) {
                        this._$elm.removeClass('mbsc-active');
                        this._removeRipple();
                        this._isActive = false;
                    }
                }
            }, {
                key: '_onEnd',
                value: function o3L(q2L) {
                    var s2L = this;
                    var U3L = this._elm;
                    var h2L = this._type;
                    if (this._isActive && this.settings.tap && q2L.type == 'touchend' && !U3L.readOnly) {
                        U3L.focus();
                        if (/(button|submit|checkbox|switch|radio)/.test(h2L)) {
                            q2L.preventDefault();
                        }
                        if (!/select/.test(h2L)) {
                            var c3L = (q2L.originalEvent || q2L).changedTouches[0],
                                N2L = document.createEvent('MouseEvents');
                            N2L.initMouseEvent('click', true, true, window, 1, c3L.screenX, c3L.screenY, c3L.clientX, c3L.clientY, false, false, false, false, 0, null);
                            N2L.tap = true;
                            U3L.mbscChange = true;
                            U3L.dispatchEvent(N2L);
                            m4K.preventClick();
                        }
                    }
                    if (this._isActive) {
                        setTimeout(function() {
                            s2L._$elm.removeClass('mbsc-active');
                            s2L._removeRipple();
                        }, 100);
                    }
                    this._isActive = false;
                    e0K = null;
                }
            }]);
            return d3L;
        }();
        var z4K = function(n2L) {
            function L2L(x2L) {
                E2K(this, L2L);
                var i2L = q0K(this, (L2L.__proto__ || Object.getPrototypeOf(L2L)).call(this, x2L));
                t1K(i2L, i2L._$elm);
                i2L._$parent.addClass('mbsc-input');
                return i2L;
            }
            N0K(L2L, n2L);
            S4K(L2L, [{
                key: 'destroy',
                value: function w2L() {
                    D0K(L2L.prototype.__proto__ || Object.getPrototypeOf(L2L.prototype), 'destroy', this).call(this);
                    this._$parent.find('.mbsc-input-wrap').before(this._$elm).remove();
                }
            }]);
            return L2L;
        }(A0K);
        var f6K = function(O2L) {
            function K2L(M2L, j2L) {
                E2K(this, K2L);
                var C2L = q0K(this, (K2L.__proto__ || Object.getPrototypeOf(K2L)).call(this, M2L, j2L));
                var S2L = C2L._$elm;
                var Z2L = S2L.attr('data-icon');
                S2L.addClass('mbsc-btn').find('.mbsc-btn-ic').remove();
                if (Z2L) {
                    S2L.prepend('<span class="mbsc-btn-ic mbsc-ic mbsc-ic-' + Z2L + '"></span>');
                    if (S2L.text() === "") {
                        S2L.addClass('mbsc-btn-icon-only');
                    }
                }
                C2L._$rippleElm = S2L;
                return C2L;
            }
            N0K(K2L, O2L);
            return K2L;
        }(A0K);
        var W6K = function(G2L) {
            function J2L(V2L) {
                E2K(this, J2L);
                var P2L = q0K(this, (J2L.__proto__ || Object.getPrototypeOf(J2L)).call(this, V2L));
                P2L._$parent.prepend(P2L._$elm).addClass('mbsc-checkbox mbsc-control-w').find('.mbsc-checkbox-box').remove();
                P2L._$elm.after('<span class="mbsc-checkbox-box"></span>');
                return P2L;
            }
            N0K(J2L, G2L);
            return J2L;
        }(A0K);
        var g6K = function(Y2L) {
            function k2L(A2L) {
                E2K(this, k2L);
                var m2L = q0K(this, (k2L.__proto__ || Object.getPrototypeOf(k2L)).call(this, A2L));
                m2L._$parent.addClass('mbsc-radio mbsc-control-w').find('.mbsc-radio-box').remove();
                m2L._$elm.after('<span class="mbsc-radio-box"><span></span></span>');
                return m2L;
            }
            N0K(k2L, Y2L);
            return k2L;
        }(A0K);
        var R6K = Z2K.$;
        var Q6K = function(f2L) {
            function d2L(Q2L) {
                E2K(this, d2L);
                var W2L = q0K(this, (d2L.__proto__ || Object.getPrototypeOf(d2L)).call(this, Q2L));
                var e2L = W2L._$elm;
                var g2L = W2L._$parent;
                var R2L = g2L.find('input.mbsc-control');
                var b2L = R2L.length ? R2L : R6K('<input tabindex="-1" class="mbsc-control" readonly>');
                W2L._$input = b2L;
                g2L.addClass('mbsc-select' + (W2L._$frame ? ' mbsc-select-inline' : ''));
                e2L.after(b2L);
                b2L.after('<span class="mbsc-select-ic mbsc-ic mbsc-ic-arrow-down5"></span>');
                if (!b2L.hasClass('mbsc-comp')) {
                    Q2L.addEventListener('change', W2L);
                    W2L._setText();
                }
                return W2L;
            }
            N0K(d2L, f2L);
            S4K(d2L, [{
                key: 'destroy',
                value: function F2L() {
                    D0K(d2L.prototype.__proto__ || Object.getPrototypeOf(d2L.prototype), 'destroy', this).call(this);
                    this._$elm.after(this._$input);
                    this._elm.removeEventListener('change', this);
                }
            }, {
                key: 'handleEvent',
                value: function v2L(H2L) {
                    D0K(d2L.prototype.__proto__ || Object.getPrototypeOf(d2L.prototype), 'handleEvent', this).call(this, H2L);
                    if (H2L.type == 'change') {
                        this._setText();
                    }
                }
            }, {
                key: '_setText',
                value: function D2L() {
                    var l2L = this._elm;
                    this._$input.val(l2L.selectedIndex != -1 ? l2L.options[l2L.selectedIndex].text : '');
                }
            }]);
            return d2L;
        }(z4K);
        var O0K = Z2K.$;
        var h5K = ['keydown', 'input', 'scroll'];
        var L5K = void 0;
        O0K(window).on('resize orientationchange', l6K);
        var T6K = function(E2L) {
            function I2L(o2L) {
                E2K(this, I2L);
                var u2L = q0K(this, (I2L.__proto__ || Object.getPrototypeOf(I2L)).call(this, o2L));
                u2L._$parent.addClass('mbsc-textarea');
                h5K.forEach(function(U2L) {
                    u2L._elm.addEventListener(U2L, u2L);
                });
                n5K(o2L);
                return u2L;
            }
            N0K(I2L, E2L);
            S4K(I2L, [{
                key: 'destroy',
                value: function c2L() {
                    var q0L = this;
                    D0K(I2L.prototype.__proto__ || Object.getPrototypeOf(I2L.prototype), 'destroy', this).call(this);
                    h5K.forEach(function(N0L) {
                        q0L._elm.removeEventListener(N0L, q0L);
                    });
                }
            }, {
                key: 'handleEvent',
                value: function s0L(h0L) {
                    D0K(I2L.prototype.__proto__ || Object.getPrototypeOf(I2L.prototype), 'handleEvent', this).call(this, h0L);
                    switch (h0L.type) {
                        case 'keydown':
                        case 'input':
                            this._onInput(h0L);
                            break;
                        case 'scroll':
                            p1K(this._elm);
                    }
                }
            }, {
                key: '_onInput',
                value: function L0L() {
                    var n0L = this;
                    clearTimeout(this._debounce);
                    this._debounce = setTimeout(function() {
                        n5K(n0L._elm);
                    }, 100);
                }
            }]);
            return I2L;
        }(z4K);
        var l4K = Z2K.$;
        var r6K = function(x0L) {
            function i0L(Z0L, M0L) {
                E2K(this, i0L);
                var K0L = q0K(this, (i0L.__proto__ || Object.getPrototypeOf(i0L)).call(this, Z0L, M0L));
                var O0L = void 0;
                var w0L = void 0;
                var C0L = K0L._$elm;
                var S0L = K0L._$parent;
                if (!S0L.hasClass('mbsc-segmented-item')) {
                    O0L = l4K('<div class="mbsc-segmented"></div>');
                    S0L.after(O0L);
                    S0L.parent().find('input[name="' + C0L.attr('name') + '"]').each(function() {
                        var j0L = l4K(this);
                        w0L = j0L.parent().addClass('mbsc-segmented-item');
                        l4K('<span class="mbsc-segmented-content">' + (j0L.attr('data-icon') ? ' <span class="mbsc-ic mbsc-ic-' + j0L.attr('data-icon') + '"></span> ' : '') + '</span>').append(w0L.contents()).appendTo(w0L);
                        w0L.prepend(j0L);
                        O0L.append(w0L);
                    });
                }
                K0L._$rippleElm = C0L.next();
                return K0L;
            }
            N0K(i0L, x0L);
            return i0L;
        }(A0K);
        var a2K = Z2K.$;
        var x5K = Z2K.util;
        var X0K = x5K.getCoord;
        var L1K = x5K.testTouch;
        var W4K = function J0L(W0L, y0L) {
            function I0L(h4L) {
                if (h4L.keyCode == 32) {
                    h4L.preventDefault();
                    if (!m0L && !W0L.disabled) {
                        f0L = a2K(this).addClass('mbsc-active');
                        N4L(h4L);
                    }
                }
            }

            function E0L(L4L) {
                if (m0L) {
                    L4L.preventDefault();
                    X0L(true);
                }
            }

            function u0L(n4L) {
                if (L1K(n4L, this) && !W0L.disabled) {
                    f0L = a2K(this).addClass('mbsc-active').trigger('focus');
                    if (Q0L && !f0L.hasClass('mbsc-step-disabled')) {
                        Q0L.addRipple(f0L.find('.mbsc-segmented-content'), n4L);
                    }
                    N4L(n4L);
                    if (n4L.type === 'mousedown') {
                        a2K(document).on('mousemove', v0L).on('mouseup', F0L);
                    }
                }
            }

            function F0L(i4L) {
                if (m0L) {
                    i4L.preventDefault();
                    X0L(true, i4L);
                    if (i4L.type === 'mouseup') {
                        a2K(document).off('mousemove', v0L).off('mouseup', F0L);
                    }
                }
            }

            function v0L(x4L) {
                if (m0L) {
                    p0L = X0K(x4L, 'X');
                    o0L = X0K(x4L, 'Y');
                    s4L = p0L - U0L;
                    q4L = o0L - t0L;
                    if (Math.abs(s4L) > 7 || Math.abs(q4L) > 7) {
                        X0L();
                    }
                }
            }

            function c0L() {
                var w4L;
                if (!W0L.disabled) {
                    w4L = parseFloat(a2K(this).val());
                    g0L(isNaN(w4L) ? G0L : w4L);
                }
            }

            function g0L(S4L, K4L, O4L) {
                B0L = G0L;
                if (K4L === undefined) {
                    K4L = true;
                }
                if (O4L === undefined) {
                    O4L = K4L;
                }
                if (S4L !== undefined) {
                    G0L = Math.min(Y0L, Math.max(Math.round(S4L / V0L) * V0L, k0L));
                } else {
                    G0L = Math.min(Y0L, Math.max(G0L + (f0L.hasClass('mbsc-stepper-minus') ? -V0L : V0L), k0L));
                }
                H0L = true;
                z0L.removeClass('mbsc-step-disabled');
                if (K4L) {
                    P0L.val(G0L);
                }
                if (G0L == k0L) {
                    l0L.addClass('mbsc-step-disabled');
                } else if (G0L == Y0L) {
                    r0L.addClass('mbsc-step-disabled');
                }
                if (G0L !== B0L && O4L) {
                    P0L.trigger('change');
                }
            }

            function N4L(C4L) {
                if (!m0L) {
                    m0L = true;
                    H0L = false;
                    U0L = X0K(C4L, 'X');
                    t0L = X0K(C4L, 'Y');
                    clearInterval(b0L);
                    clearTimeout(b0L);
                    b0L = setTimeout(function() {
                        g0L();
                        b0L = setInterval(function() {
                            g0L();
                        }, 150);
                    }, 300);
                }
            }

            function X0L(Z4L) {
                clearInterval(b0L);
                clearTimeout(b0L);
                if (!H0L && Z4L) {
                    g0L();
                }
                m0L = false;
                H0L = false;
                f0L.removeClass('mbsc-active');
                if (Q0L) {
                    setTimeout(function() {
                        Q0L.removeRipple();
                    }, 100);
                }
            }

            function T0L(j4L, J4L) {
                var M4L = P0L.attr(j4L);
                return M4L === undefined || M4L === '' ? J4L : +M4L;
            }
            var f0L, r0L, l0L, z0L, m0L, H0L, s4L, q4L, a0L, p0L, o0L, b0L, Y0L, k0L, Q0L, V0L, R0L, U0L, t0L, e0L, G0L, A0L = this,
                P0L = a2K(W0L),
                D0L, d0L, B0L = G0L;
            Z2K.classes.Base.call(this, W0L, y0L, true);
            A0L.getVal = function() {
                var G4L = parseFloat(P0L.val());
                G4L = isNaN(G4L) ? G0L : G4L;
                return Math.min(Y0L, Math.max(Math.round(G4L / V0L) * V0L, k0L));
            };
            A0L.setVal = function(P4L, V4L, k4L) {
                P4L = parseFloat(P4L);
                g0L(isNaN(P4L) ? G0L : P4L, V4L, k4L);
            };
            A0L._init = function(Y4L) {
                D0L = P0L.parent().hasClass('mbsc-stepper');
                d0L = D0L ? P0L.closest('.mbsc-stepper-cont') : P0L.parent();
                R0L = A0L.settings;
                k0L = Y4L.min === undefined ? T0L('min', R0L.min) : Y4L.min;
                Y0L = Y4L.max === undefined ? T0L('max', R0L.max) : Y4L.max;
                V0L = Y4L.step === undefined ? T0L('step', R0L.step) : Y4L.step;
                a0L = P0L.attr('data-val') || R0L.val;
                G0L = Math.min(Y0L, Math.max(Math.round(+W0L.value / V0L) * V0L || 0, k0L));
                e0L = Z2K.themes.form[y0L.theme];
                Q0L = e0L && e0L.addRipple ? e0L : null;
                if (!D0L) {
                    d0L.addClass('mbsc-stepper-cont mbsc-control-w').append('<span class="mbsc-segmented mbsc-stepper"></span>').find('.mbsc-stepper').append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-minus ' + (G0L == k0L ? 'mbsc-step-disabled' : '') + '"  tabindex="0"><span class="mbsc-segmented-content"><span class="mbsc-ic mbsc-ic-minus"></span></span></span>').append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-plus ' + (G0L == Y0L ? 'mbsc-step-disabled' : '') + '"  tabindex="0"><span class="mbsc-segmented-content"> <span class="mbsc-ic mbsc-ic-plus"></span> </span></span>').prepend(P0L);
                }
                l0L = a2K('.mbsc-stepper-minus', d0L);
                r0L = a2K('.mbsc-stepper-plus', d0L);
                if (!D0L) {
                    if (a0L == 'left') {
                        d0L.addClass('mbsc-stepper-val-left');
                        P0L.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>');
                    } else if (a0L == 'right') {
                        d0L.addClass('mbsc-stepper-val-right');
                        r0L.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>');
                    } else {
                        l0L.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content mbsc-stepper-val"></span></span>');
                    }
                }
                P0L.val(G0L).attr('data-role', 'stepper').attr('min', k0L).attr('max', Y0L).attr('step', V0L).on('change', c0L);
                z0L = a2K('.mbsc-stepper-control', d0L).on('keydown', I0L).on('keyup', E0L).on('mousedown touchstart', u0L).on('touchmove', v0L).on('touchend touchcancel', F0L);
                P0L.addClass('mbsc-stepper-ready mbsc-control');
            };
            A0L._destroy = function() {
                P0L.removeClass('mbsc-control').off('change', c0L);
                z0L.off('keydown', I0L).off('keyup', E0L).off('mousedown touchstart', u0L).off('touchmove', v0L).off('touchend touchcancel', F0L);
            };
            A0L.init(y0L);
        };
        W4K.prototype = {
            _class: 'stepper',
            _defaults: {
                min: 0,
                max: 100,
                step: 1
            }
        };
        Z2K.classes.Stepper = W4K;
        Z2K.presetShort('stepper', 'Stepper');
        var K5K = Z2K.$;
        var d4K = function m4L(f4L, W4L) {
            var d4L, b4L, g4L, R4L, A4L = this;
            W4L = W4L || {};
            K5K.extend(W4L, {
                changeEvent: 'click',
                round: false
            });
            A4K.call(this, f4L, W4L, true);
            A4L._readValue = function() {
                return f4L.checked ? 1 : 0;
            };
            A4L._fillValue = function(Q4L, F4L, e4L) {
                d4L.prop('checked', !!Q4L);
                if (e4L) {
                    d4L.trigger('change');
                }
            };
            A4L._onTap = function(v4L) {
                A4L._setVal(v4L ? 0 : 1);
            };
            A4L.___init = function() {
                g4L = A4L.settings;
                d4L = K5K(f4L);
                b4L = d4L.parent();
                b4L.find('.mbsc-switch-track').remove();
                b4L.prepend(d4L);
                d4L.attr('data-role', 'switch').after('<span class="mbsc-progress-cont mbsc-switch-track">' + '<span class="mbsc-progress-track mbsc-progress-anim">' + '<span class="mbsc-slider-handle-cont">' + '<span class="mbsc-slider-handle mbsc-switch-handle" data-index="0">' + '<span class="mbsc-switch-txt-off">' + g4L.offText + '</span>' + '<span class="mbsc-switch-txt-on">' + g4L.onText + '</span>' + '</span></span></span></span>');
                R4L = new A0K(f4L);
                A4L._$track = b4L.find('.mbsc-progress-track');
                A4L._min = 0;
                A4L._max = 1;
                A4L._step = 1;
            };
            A4L.___destroy = function() {
                R4L.destroy();
            };
            A4L.getVal = function() {
                return f4L.checked;
            };
            A4L.setVal = function(H4L, D4L, l4L) {
                A4L._setVal(H4L ? 1 : 0, D4L, l4L);
            };
            A4L.init(W4L);
        };
        d4K.prototype = {
            _class: 'switch',
            _css: 'mbsc-switch',
            _hasTheme: true,
            _hasLang: true,
            _defaults: {
                stopProp: true,
                offText: 'Off',
                onText: 'On'
            }
        };
        Z2K.classes.Switch = d4K;
        Z2K.presetShort('switch', 'Switch');
        var Z1K = 0;
        var F2K = Z2K.$;
        var P1K = Z2K.classes;
        var C5K = Z2K.instances;
        var g0K = function B4L(a4L, p4L) {
            function t4L() {
                X4L.removeClass('mbsc-no-touch');
            }
            var z4L, I4L, r4L = '',
                X4L = F2K(a4L),
                y4L = {},
                T4L = this;
            P1K.Base.call(this, a4L, p4L, true);
            T4L.refresh = function(E4L) {
                F2K('input,select,textarea,progress,button', X4L).each(function() {
                    var u4L = this,
                        o4L = F2K(u4L),
                        U4L = G6K(o4L);
                    if (o4L.attr('data-enhance') != 'false') {
                        if (o4L.hasClass('mbsc-control')) {
                            if (y4L[u4L.id]) {
                                y4L[u4L.id].option({
                                    theme: z4L.theme,
                                    lang: z4L.lang,
                                    rtl: z4L.rtl,
                                    onText: z4L.onText,
                                    offText: z4L.offText,
                                    stopProp: z4L.stopProp
                                });
                            }
                        } else {
                            if (!u4L.id) {
                                u4L.id = 'mbsc-form-control-' + ++Z1K;
                            }
                            switch (U4L) {
                                case 'button':
                                case 'submit':
                                    y4L[u4L.id] = new f6K(u4L, {
                                        theme: z4L.theme,
                                        tap: z4L.tap
                                    });
                                    break;
                                case 'switch':
                                    y4L[u4L.id] = new d4K(u4L, {
                                        theme: z4L.theme,
                                        lang: z4L.lang,
                                        rtl: z4L.rtl,
                                        onText: z4L.onText,
                                        offText: z4L.offText,
                                        stopProp: z4L.stopProp
                                    });
                                    break;
                                case 'checkbox':
                                    y4L[u4L.id] = new W6K(u4L, {
                                        tap: z4L.tap
                                    });
                                    break;
                                case 'range':
                                    if (!F2K(u4L).parent().hasClass('mbsc-slider')) {
                                        y4L[u4L.id] = new f4K(u4L, {
                                            theme: z4L.theme,
                                            lang: z4L.lang,
                                            rtl: z4L.rtl,
                                            stopProp: z4L.stopProp
                                        });
                                    }
                                    break;
                                case 'progress':
                                    y4L[u4L.id] = new o0K(u4L, {
                                        theme: z4L.theme,
                                        lang: z4L.lang,
                                        rtl: z4L.rtl
                                    });
                                    break;
                                case 'radio':
                                    y4L[u4L.id] = new g6K(u4L, {
                                        tap: z4L.tap
                                    });
                                    break;
                                case 'select':
                                case 'select-one':
                                case 'select-multiple':
                                    y4L[u4L.id] = new Q6K(u4L, {
                                        tap: z4L.tap
                                    });
                                    break;
                                case 'textarea':
                                    y4L[u4L.id] = new T6K(u4L, {
                                        tap: z4L.tap
                                    });
                                    break;
                                case 'segmented':
                                    y4L[u4L.id] = new r6K(u4L, {
                                        theme: z4L.theme,
                                        tap: z4L.tap
                                    });
                                    break;
                                case 'stepper':
                                    y4L[u4L.id] = new W4K(u4L, {
                                        theme: z4L.theme
                                    });
                                    break;
                                case 'hidden':
                                    return;
                                default:
                                    y4L[u4L.id] = new z4K(u4L, {
                                        tap: z4L.tap
                                    });
                                    break;
                            }
                        }
                    }
                });
                if (!E4L) {
                    l6K();
                }
            };
            T4L._init = function() {
                if (!Z2K.themes.form[z4L.theme]) {
                    z4L.theme = 'mobiscroll';
                }
                if (!X4L.hasClass('mbsc-form')) {
                    X4L.on('touchstart', t4L).show();
                }
                if (r4L) {
                    X4L.removeClass(r4L);
                }
                r4L = 'mbsc-form mbsc-no-touch mbsc-' + z4L.theme + (z4L.baseTheme ? ' mbsc-' + z4L.baseTheme : '') + (z4L.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
                X4L.addClass(r4L);
                T4L.refresh();
            };
            T4L._destroy = function() {
                X4L.removeClass(r4L).off('touchstart', t4L);
                for (var c4L in y4L) {
                    y4L[c4L].destroy();
                }
            };
            z4L = T4L.settings;
            I4L = T4L.trigger;
            T4L.init(p4L);
        };
        g0K.prototype = {
            _hasDef: true,
            _hasTheme: true,
            _hasLang: true,
            _class: 'form',
            _defaults: {
                tap: true,
                stopProp: true,
                lang: 'en'
            }
        };
        Z2K.themes.form.mobiscroll = {};
        Z2K.classes.Form = g0K;
        Z2K.presetShort('form', 'Form');
        F2K(function() {
            var q5L = '[mbsc-enhance],[mbsc-form]';
            F2K(q5L).each(function() {
                new g0K(this);
            });
            F2K(document).on('mbsc-enhance', function(N5L, s5L) {
                if (F2K(N5L.target).is(q5L)) {
                    new g0K(N5L.target, s5L);
                } else {
                    F2K(q5L, N5L.target).each(function() {
                        new g0K(this, s5L);
                    });
                }
            });
            F2K(document).on('mbsc-refresh', function(L5L) {
                var h5L;
                if (F2K(L5L.target).is(q5L)) {
                    h5L = C5K[L5L.target.id];
                    if (h5L) {
                        h5L.refresh();
                    }
                } else {
                    F2K(q5L, L5L.target).each(function() {
                        h5L = C5K[this.id];
                        if (h5L) {
                            h5L.refresh();
                        }
                    });
                }
            });
        });
        var g1K = +new Date();
        J2K.module('mobiscroll-form', []).directive('mobiscrollForm', ['$parse', function(n5L) {
            return {
                restrict: 'A',
                compile: function i5L() {
                    return {
                        pre: function x5L(C5L, O5L, S5L) {
                            var K5L = Z2K.ng.getOpt(C5L, S5L, 'mobiscrollForm', true),
                                w5L = S5L.id;
                            if (!w5L) {
                                w5L = 'mbsc-form-' + g1K++;
                                O5L.attr('id', w5L);
                            }
                            O5L.attr('mbsc-form-opt', '');
                            Z2K.ng.formOptions[w5L] = {
                                theme: K5L.theme,
                                lang: K5L.lang
                            };
                        },
                        post: function Z5L(j5L, G5L, J5L) {
                            var M5L = new Z2K.classes.Form(G5L[0], Z2K.ng.getOpt(j5L, J5L, 'mobiscrollForm', true));
                            if (J5L.mobiscrollInstance) {
                                n5L(J5L.mobiscrollInstance).assign(j5L, M5L);
                            }
                            j5L.$on('mbscFormRefresh', function() {
                                M5L.refresh();
                            });
                            j5L.$on('$destroy', function() {
                                M5L.destroy();
                                M5L = null;
                            });
                        }
                    };
                }
            };
        }]).directive('mobiscrollSwitch', ['$parse', function(P5L) {
            return Z2K.ng.getDDO(P5L, 'mobiscrollSwitch', {
                component: 'Switch'
            }, undefined, undefined, undefined, undefined, true);
        }]).directive('mobiscrollStepper', ['$parse', function(V5L) {
            return Z2K.ng.getDDO(V5L, 'mobiscrollStepper', {
                component: 'Stepper'
            });
        }]);
        J2K.module('mobiscroll-progress', []).directive('mobiscrollProgress', ['$parse', function(k5L) {
            return Z2K.ng.getDDO(k5L, 'mobiscrollProgress', {
                component: 'Progress'
            }, undefined, undefined, undefined, undefined, true);
        }]);
        J2K.module('mobiscroll-slider', []).directive('mobiscrollSlider', ['$parse', function(Y5L) {
            return Z2K.ng.getDDO(Y5L, 'mobiscrollSlider', {
                component: 'Slider'
            }, undefined, undefined, undefined, undefined, true);
        }]);
        var i0K = Z2K.$;
        var v1K = {
            invalid: [],
            showInput: true,
            inputClass: ''
        };
        Z2K.presets.scroller.list = function(A5L) {
            function c5L(s6L, h6L, L6L) {
                var q6L = 0,
                    N6L = [];
                while (q6L < s6L) {
                    N6L[q6L] = U5L(L6L, q6L, h6L);
                    q6L++;
                }
                return N6L;
            }

            function U5L(O6L, S6L, C6L) {
                var n6L = 0,
                    x6L, i6L = C6L,
                    w6L = [];
                while (n6L < S6L) {
                    var K6L = O6L[n6L];
                    for (x6L in i6L) {
                        if (i6L[x6L].key == K6L) {
                            i6L = i6L[x6L].children;
                            break;
                        }
                    }
                    n6L++;
                }
                n6L = 0;
                while (n6L < i6L.length) {
                    if (i6L[n6L].invalid) {
                        w6L.push(i6L[n6L].key);
                    }
                    n6L++;
                }
                return w6L;
            }

            function u5L(M6L, j6L) {
                var Z6L = [];
                while (M6L) {
                    Z6L[--M6L] = true;
                }
                Z6L[j6L] = false;
                return Z6L;
            }

            function E5L(P6L) {
                var G6L = [],
                    J6L;
                for (J6L = 0; J6L < P6L; J6L++) {
                    G6L[J6L] = m5L.labels && m5L.labels[J6L] ? m5L.labels[J6L] : J6L;
                }
                return G6L;
            }

            function y5L(W6L, b6L, d6L) {
                var V6L = 0,
                    k6L, f6L, A6L, m6L = [
                        []
                    ],
                    Y6L = b5L;
                if (b6L) {
                    for (k6L = 0; k6L < b6L; k6L++) {
                        if (e5L) {
                            m6L[0][k6L] = {};
                        } else {
                            m6L[k6L] = [{}];
                        }
                    }
                }
                while (V6L < W6L.length) {
                    if (e5L) {
                        m6L[0][V6L] = p5L(Y6L, l5L[V6L]);
                    } else {
                        m6L[V6L] = [p5L(Y6L, l5L[V6L])];
                    }
                    k6L = 0;
                    A6L = undefined;
                    while (k6L < Y6L.length && A6L === undefined) {
                        if (Y6L[k6L].key == W6L[V6L] && (d6L !== undefined && V6L <= d6L || d6L === undefined)) {
                            A6L = k6L;
                        }
                        k6L++;
                    }
                    if (A6L !== undefined && Y6L[A6L].children) {
                        V6L++;
                        Y6L = Y6L[A6L].children;
                    } else if ((f6L = R5L(Y6L)) && f6L.children) {
                        V6L++;
                        Y6L = f6L.children;
                    } else {
                        return m6L;
                    }
                }
                return m6L;
            }

            function R5L(R6L, e6L) {
                if (!R6L) {
                    return false;
                }
                var g6L = 0,
                    Q6L;
                while (g6L < R6L.length) {
                    if (!(Q6L = R6L[g6L++]).invalid) {
                        return e6L ? g6L - 1 : Q6L;
                    }
                }
                return false;
            }

            function p5L(v6L, D6L) {
                var H6L = {
                        data: [],
                        label: D6L
                    },
                    F6L = 0;
                while (F6L < v6L.length) {
                    H6L.data.push({
                        value: v6L[F6L].key,
                        display: v6L[F6L].value
                    });
                    F6L++;
                }
                return H6L;
            }

            function a5L(l6L) {
                if (A5L._isVisible) {
                    i0K('.mbsc-sc-whl-w', A5L._markup).css('display', '').slice(l6L).hide();
                }
            }

            function o5L(r6L) {
                var z6L = [],
                    y6L = r6L,
                    T6L, B6L = true,
                    X6L = 0;
                while (B6L) {
                    T6L = R5L(y6L);
                    z6L[X6L++] = T6L.key;
                    B6L = T6L.children;
                    if (B6L) {
                        y6L = B6L;
                    }
                }
                return z6L;
            }

            function z5L(E6L, c6L) {
                var U6L = [],
                    p6L = b5L,
                    t6L = 0,
                    o6L = false,
                    I6L, u6L, a6L;
                if (E6L[t6L] !== undefined && t6L <= c6L) {
                    I6L = 0;
                    u6L = E6L[t6L];
                    a6L = undefined;
                    while (I6L < p6L.length && a6L === undefined) {
                        if (p6L[I6L].key == E6L[t6L] && !p6L[I6L].invalid) {
                            a6L = I6L;
                        }
                        I6L++;
                    }
                } else {
                    a6L = R5L(p6L, true);
                    u6L = p6L[a6L].key;
                }
                o6L = a6L !== undefined ? p6L[a6L].children : false;
                U6L[t6L] = u6L;
                while (o6L) {
                    p6L = p6L[a6L].children;
                    t6L++;
                    o6L = false;
                    a6L = undefined;
                    if (E6L[t6L] !== undefined && t6L <= c6L) {
                        I6L = 0;
                        u6L = E6L[t6L];
                        a6L = undefined;
                        while (I6L < p6L.length && a6L === undefined) {
                            if (p6L[I6L].key == E6L[t6L] && !p6L[I6L].invalid) {
                                a6L = I6L;
                            }
                            I6L++;
                        }
                    } else {
                        a6L = R5L(p6L, true);
                        a6L = a6L === false ? undefined : a6L;
                        u6L = p6L[a6L].key;
                    }
                    o6L = a6L !== undefined && R5L(p6L[a6L].children) ? p6L[a6L].children : false;
                    U6L[t6L] = u6L;
                }
                return {
                    lvl: t6L + 1,
                    nVector: U6L
                };
            }

            function X5L(N1L) {
                var q1L = [];
                d5L = d5L > v5L++ ? d5L : v5L;
                N1L.children('li').each(function(w1L) {
                    var s1L = i0K(this),
                        h1L = s1L.clone();
                    h1L.children('ul,ol').remove();
                    var i1L = A5L._processMarkup ? A5L._processMarkup(h1L) : h1L.html().replace(/^\s\s*/, '').replace(/\s\s*$/, ''),
                        x1L = s1L.attr('data-invalid') ? true : false,
                        L1L = {
                            key: s1L.attr('data-val') === undefined || s1L.attr('data-val') === null ? w1L : s1L.attr('data-val'),
                            value: i1L,
                            invalid: x1L,
                            children: null
                        },
                        n1L = s1L.children('ul,ol');
                    if (n1L.length) {
                        L1L.children = X5L(n1L);
                    }
                    q1L.push(L1L);
                });
                v5L--;
                return q1L;
            }

            function I5L(S1L, J1L, Z1L) {
                var K1L, O1L = (J1L || 0) + 1,
                    M1L = [],
                    C1L = {},
                    j1L = {};
                C1L = y5L(S1L, null, J1L);
                for (K1L = 0; K1L < S1L.length; K1L++) {
                    A5L._tempWheelArray[K1L] = S1L[K1L] = Z1L.nVector[K1L] || 0;
                }
                while (O1L < Z1L.lvl) {
                    j1L[O1L] = e5L ? C1L[0][O1L] : C1L[O1L][0];
                    M1L.push(O1L++);
                }
                a5L(Z1L.lvl);
                F5L = S1L.slice(0);
                if (M1L.length) {
                    Q5L = true;
                    A5L.changeWheel(j1L);
                }
            }
            var t5L = i0K.extend({}, A5L.settings),
                m5L = i0K.extend(A5L.settings, v1K, t5L),
                D5L = m5L.layout || (/top|bottom/.test(m5L.display) ? 'liquid' : ''),
                e5L = D5L == 'liquid',
                r5L = m5L.readonly,
                g5L = i0K(this),
                W5L, Q5L, H5L = this.id + '_dummy',
                d5L = 0,
                v5L = 0,
                f5L, F5L = [],
                b5L = m5L.wheelArray || X5L(g5L),
                l5L = E5L(d5L),
                B5L = o5L(b5L),
                T5L = y5L(B5L, d5L);
            i0K('#' + H5L).remove();
            if (m5L.showInput) {
                W5L = i0K('<input type="text" id="' + H5L + '" value="" class="' + m5L.inputClass + '" placeholder="' + (m5L.placeholder || '') + '" readonly />').insertBefore(g5L);
                m5L.anchor = W5L;
                A5L.attachShow(W5L);
            }
            if (!m5L.wheelArray) {
                g5L.hide();
            }
            return {
                wheels: T5L,
                layout: D5L,
                headerText: false,
                setOnTap: d5L == 1,
                formatValue: function G1L(P1L) {
                    if (f5L === undefined) {
                        f5L = z5L(P1L, P1L.length).lvl;
                    }
                    return P1L.slice(0, f5L).join(' ');
                },
                parseValue: function V1L(k1L) {
                    return k1L ? (k1L + '').split(' ') : (m5L.defaultValue || B5L).slice(0);
                },
                onBeforeShow: function Y1L() {
                    var m1L = A5L.getArrayVal(true);
                    F5L = m1L.slice(0);
                    m5L.wheels = y5L(m1L, d5L, d5L);
                    Q5L = true;
                },
                onWheelGestureStart: function A1L(d1L) {
                    m5L.readonly = u5L(d5L, d1L.index);
                },
                onWheelAnimationEnd: function f1L(R1L) {
                    var W1L = R1L.index,
                        b1L = A5L.getArrayVal(true),
                        g1L = z5L(b1L, W1L);
                    f5L = g1L.lvl;
                    m5L.readonly = r5L;
                    if (b1L[W1L] != F5L[W1L]) {
                        I5L(b1L, W1L, g1L);
                    }
                },
                onFill: function Q1L(e1L) {
                    f5L = undefined;
                    if (W5L) {
                        W5L.val(e1L.valueText);
                    }
                },
                validate: function F1L(l1L) {
                    var v1L = l1L.values,
                        D1L = l1L.index,
                        H1L = z5L(v1L, v1L.length);
                    f5L = H1L.lvl;
                    if (D1L === undefined) {
                        a5L(H1L.lvl);
                        if (!Q5L) {
                            I5L(v1L, D1L, H1L);
                        }
                    }
                    Q5L = false;
                    return {
                        disabled: c5L(f5L, b5L, v1L)
                    };
                },
                onDestroy: function B1L() {
                    if (W5L) {
                        W5L.remove();
                    }
                    g5L.show();
                }
            };
        };
        var M5K = Z2K.$;
        var j5K = Z2K.presets.scroller;
        Z2K.presetShort('image');
        j5K.image = function(z1L) {
            if (z1L.settings.enhance) {
                z1L._processMarkup = function(y1L) {
                    var T1L = y1L.attr('data-icon');
                    y1L.children().each(function(r1L, X1L) {
                        X1L = M5K(X1L);
                        if (X1L.is('img')) {
                            M5K('<div class="mbsc-img-c"></div>').insertAfter(X1L).append(X1L.addClass('mbsc-img'));
                        } else if (X1L.is('p')) {
                            X1L.addClass('mbsc-img-txt');
                        }
                    });
                    if (T1L) {
                        y1L.prepend('<div class="mbsc-ic mbsc-ic-' + T1L + '"></div');
                    }
                    y1L.html('<div class="mbsc-img-w">' + y1L.html() + '</div>');
                    return y1L.html();
                };
            }
            return j5K.list.call(this, z1L);
        };
        (function() {
            var p1L = Z2K.$,
                a1L = 'mobiscrollImage',
                t1L = ['ng-repeat', 'ng:repeat', 'data-ng-repeat', 'x-ng-repeat', 'ng_repeat'],
                I1L = +new Date();
            J2K.module('mobiscroll-image', []).directive('mobiscrollRepeatRender', function() {
                return function(E1L, U1L, o1L) {
                    function u1L() {
                        E1L.$emit('mbscRepeatRender' + o1L.mobiscrollRepeatRender);
                    }
                    u1L();
                    E1L.$on('$destroy', u1L);
                };
            }).directive(a1L, ['$parse', function(c1L) {
                var q8L = Z2K.ng.getDDO(c1L, a1L, {
                    preset: 'image'
                });
                q8L.link = undefined;
                q8L.compile = function(n8L) {
                    var s8L, h8L = '' + I1L++,
                        L8L = p1L(n8L[0]),
                        N8L;
                    L8L.find('li').each(function() {
                        for (N8L = 0; N8L < t1L.length; N8L++) {
                            if (p1L(this).attr(t1L[N8L])) {
                                s8L = true;
                                return false;
                            }
                        }
                    });
                    if (s8L) {
                        L8L.children().attr('mobiscroll-repeat-render', h8L);
                    }
                    return function(x8L, O8L, i8L, C8L) {
                        var w8L, Z8L, S8L = p1L(O8L[0]),
                            K8L = Z2K.ng.getOpt(x8L, i8L, a1L, C8L);
                        J2K.extend(K8L, {
                            preset: 'image'
                        });
                        Z2K.ng.addWatch(c1L, x8L, C8L, S8L, i8L, a1L);
                        if (s8L) {
                            x8L.$on('mbscRepeatRender' + h8L, function() {
                                clearTimeout(Z8L);
                                Z8L = setTimeout(function() {
                                    w8L = new Z2K.classes.Scroller(O8L[0], K8L);
                                    if (i8L.mobiscrollInstance) {
                                        c1L(i8L.mobiscrollInstance).assign(x8L, w8L);
                                    }
                                }, 1);
                            });
                        } else if (S8L.children().length) {
                            w8L = new Z2K.classes.Scroller(O8L[0], K8L);
                            if (i8L.mobiscrollInstance) {
                                c1L(i8L.mobiscrollInstance).assign(x8L, w8L);
                            }
                        }
                    };
                };
                return q8L;
            }]);
        }());
		
		(function(t49, P49, F49) {
            var a49, i49 = Z2K,
                q49 = i49.$,
                A49 = q49.extend,
                d49 = i49.classes,
                c49 = i49.util,
                E49 = c49.prefix,
                w49 = c49.jsPrefix,
                K49 = c49.getCoord,
                Q49 = c49.testTouch,
                U49 = c49.vibrate,
                Z49 = c49.animEnd,
                C49 = 1,
                x49 = function() {},
                m49 = t49.requestAnimationFrame || function(Y49) {
                    Y49();
                },
                p49 = t49.cancelAnimationFrame || x49,
                M49 = 'transparent';
            d49.ListView = function(R99, s89) {
                function i89(I09, e09, r09) {
                    var s09, O09;
                    if (I09 && I09.length) {
                        s09 = 100 / (I09.length + 2);
                        q49.each(I09, function(n09, G09) {
                            if (G09.key === F49) {
                                G09.key = M89++;
                            }
                            if (G09.percent === F49) {
                                G09.percent = e09 * s09 * (n09 + 1);
                                if (r09) {
                                    O09 = A49({}, G09);
                                    O09.key = M89++;
                                    O09.percent = -s09 * (n09 + 1);
                                    I09.push(O09);
                                    V79[O09.key] = O09;
                                }
                            }
                            V79[G09.key] = G09;
                        });
                    }
                }

                function E89(J09, k09) {
                    var B09, V09 = J09.attr('data-ref');
                    B09 = K89[V09] = K89[V09] || [];
                    if (k09) {
                        B09.push(k09);
                    }
                    if (J09.attr('data-action')) {
                        return;
                    }
                    k09 = B09.shift();
                    J09.attr('data-action', 1);
                    k09(function() {
                        J09.removeAttr('data-action');
                        if (B09.length) {
                            E89(J09);
                        } else {
                            delete K89[V09];
                        }
                    });
                }

                function E99(X09, v09, L09) {
                    function u09() {
                        clearTimeout(o09);
                        l79--;
                        X09.off(Z49, u09).removeClass(v09);
                        L09.call(G49, X09);
                    }
                    var o09;
                    L09 = L09 || x49;
                    if (v49.animation && v09 !== 'mbsc-lv-item-none') {
                        l79++;
                        X09.on(Z49, u09).addClass(v09);
                        o09 = setTimeout(u09, 500);
                    } else {
                        L09.call(G49, X09);
                    }
                }

                function U89(p09, Y09) {
                    if (!l79) {
                        if (p09.hasClass('mbsc-lv-parent')) {
                            C79++;
                            m89('r', W49[p09.attr('data-ref')].child, null, Y09);
                        } else if (p09.hasClass('mbsc-lv-back')) {
                            C79--;
                            m89('l', W49[p09.attr('data-back')].parent, W49[p09.attr('data-back')].item, Y09);
                        }
                    }
                }

                function m89(M09, A09, t09, U09, Q09) {
                    var m09 = A09.parent(),
                        Z09 = A09.prev();
                    U09 = U09 || x49;
                    if (Z09[0] === S49[0]) {
                        Z09 = S49.prev();
                    }
                    if (j49[0] !== A09[0]) {
                        I49('onNavStart', {
                            level: C79,
                            direction: M09,
                            list: A09[0]
                        });
                        d89.prepend(A09.addClass('mbsc-lv-v mbsc-lv-sl-new'));
                        k79(o49);
                        E99(d89, 'mbsc-lv-sl-' + M09, function() {
                            j49.removeClass('mbsc-lv-sl-curr');
                            A09.removeClass('mbsc-lv-sl-new').addClass('mbsc-lv-sl-curr');
                            if (s79 && s79.length) {
                                j49.removeClass('mbsc-lv-v').insertAfter(s79);
                            } else {
                                j79.append(j49.removeClass('mbsc-lv-v'));
                            }
                            s79 = Z09;
                            j79 = m09;
                            j49 = A09;
                            k79(t09, Q09);
                            U09.call(G49, t09);
                            I49('onNavEnd', {
                                level: C79,
                                direction: M09,
                                list: A09[0]
                            });
                        });
                    } else {
                        k79(t09, Q09);
                        U09.call(G49, t09);
                    }
                }

                function k79(C09, E09) {
                    if (C09) {
                        var x09 = k49.scrollTop(),
                            d09 = C09.is('.mbsc-lv-item') ? C09[0].offsetHeight : 0,
                            P09 = C09.offset().top + (y79 ? x09 - Z89 : 0);
                        if (E09) {
                            if (P09 < x09 || P09 + d09 > x09 + X79) {
                                k49.scrollTop(P09);
                            }
                        } else {
                            if (P09 < x09) {
                                k49.scrollTop(P09);
                            } else if (P09 + d09 > x09 + X79) {
                                k49.scrollTop(P09 + d09 - X79 / 2);
                            }
                        }
                    }
                }

                function P99(F09, i09) {
                    return +(i09 < 0 ? w79((F09.actionsWidth || 0).right) || w79(F09.actionsWidth) || w79(v49.actionsWidth.right) || w79(v49.actionsWidth) : w79((F09.actionsWidth || 0).left) || w79(F09.actionsWidth) || w79(v49.actionsWidth.left) || w79(v49.actionsWidth));
                }

                function w79(a09) {
                    return c49.isNumeric(a09) ? a09 + '' : 0;
                }

                function F99(w09) {
                    return (w09 > 0 ? J49.right : J49.left).color || M49;
                }

                function n79(c09, K09) {
                    c09 = c09[K09]();
                    while (c09.length && (!c09.hasClass('mbsc-lv-item') || c09.hasClass('mbsc-lv-ph') || c09.hasClass('mbsc-lv-item-dragging'))) {
                        if (!X49.sortable.group && c09.hasClass('mbsc-lv-gr-title')) {
                            return false;
                        }
                        c09 = c09[K09]();
                    }
                    return c09;
                }

                function U99(q09) {
                    var H09 = 0,
                        l09 = W49[q09.attr('data-ref')];
                    while (l09 && l09.ref) {
                        H09++;
                        l09 = W49[l09.ref];
                    }
                    return H09;
                }

                function Z79(b09) {
                    if (typeof b09 !== 'object') {
                        b09 = q49('li[data-id="' + b09 + '"]', o49);
                    }
                    return q49(b09);
                }

                function o79(y09) {
                    return y09.children('li').not('.mbsc-lv-back').not('.mbsc-lv-removed').not('.mbsc-lv-ph');
                }

                function q99(f09) {
                    q49('li', f09).not('.mbsc-lv-item').each(function() {
                        H99(q49(this));
                    });
                    q49('li[data-role="list-divider"]', f09).removeClass('mbsc-lv-item').addClass('mbsc-lv-gr-title');
                    q49('ul,ol', f09).not('.mbsc-lv').addClass('mbsc-lv').prepend(P89).parent().addClass('mbsc-lv-parent').prepend(x89);
                    q49('.mbsc-lv-back', f09).each(function() {
                        q49(this).attr('data-back', q49(this).parent().parent().attr('data-ref'));
                    });
                }

                function H99(D39) {
                    var W39;
                    if (!D39.attr('data-ref')) {
                        W39 = C49++;
                        D39.attr('data-ref', W39);
                        W49[W39] = {
                            item: D39,
                            child: D39.children('ul,ol'),
                            parent: D39.parent(),
                            ref: D39.parent()[0] === G49 ? null : D39.parent().parent().attr('data-ref')
                        };
                    }
                    D39.addClass('mbsc-lv-item');
                    if (X49.sortable.handle && D39.attr('data-role') != 'list-divider' && !D39.children('.mbsc-lv-handle-c').length) {
                        D39.append(K99);
                    }
                    if (v49.enhance && !D39.hasClass('mbsc-lv-item-enhanced')) {
                        var R09 = D39.attr('data-icon'),
                            z09 = D39.find('img').eq(0).addClass('mbsc-lv-img');
                        if (z09.is(':first-child')) {
                            D39.addClass('mbsc-lv-img-' + (v49.rtl ? 'right' : 'left'));
                        } else if (z09.length) {
                            D39.addClass('mbsc-lv-img-' + (v49.rtl ? 'left' : 'right'));
                        }
                        D39.addClass('mbsc-lv-item-enhanced').children().each(function(T09, N09) {
                            N09 = q49(N09);
                            if (N09.is('p, h1, h2, h3, h4, h5, h6')) {
                                N09.addClass('mbsc-lv-txt');
                            }
                        });
                        if (R09) {
                            D39.addClass('mbsc-lv-item-ic-' + (D39.attr('data-icon-align') || (v49.rtl ? 'right' : 'left'))).append('<div class="mbsc-lv-item-ic mbsc-ic mbsc-ic-' + R09 + '"></div>');
                        }
                    }
                }

                function m79(h39, S39) {
                    return q49.isFunction(h39) ? h39.call(this, S39, X49) : h39;
                }

                function Y79(g39) {
                    N79 = g39[0].style;
                    N79[w49 + 'Transform'] = '';
                    N79[w49 + 'Transition'] = '';
                    N79.top = '';
                    g39.removeClass('mbsc-lv-item-swiping');
                }

                function y99(j39) {
                    j39.css('top', '').removeClass('mbsc-lv-item-undo');
                    if (R89) {
                        X49.animate(z79, 'collapse', function() {
                            z79.remove();
                        });
                    } else {
                        z79.remove();
                    }
                    v89();
                    W79 = null;
                    R89 = null;
                }

                function v89(G39, n39) {
                    if (!T79) {
                        u79.attr('class', 'mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none');
                        B49.attr('style', '').removeClass('mbsc-lv-stage-c-v');
                        g79.html('');
                    }
                    B49.removeClass('mbsc-lv-left mbsc-lv-right');
                    if (G39) {
                        I49('onSlideEnd', {
                            target: G39[0],
                            index: u49
                        });
                        if (n39) {
                            n39();
                        }
                    }
                }

                function N89(s39, r39) {
                    var e39 = m79(s39.text, {
                        target: L49[0],
                        index: u49
                    }) || '';
                    if (m79(s39.disabled, {
                            target: L49[0],
                            index: u49
                        })) {
                        B49.addClass('mbsc-lv-ic-disabled');
                    } else {
                        B49.removeClass('mbsc-lv-ic-disabled');
                    }
                    B49.css('background-color', s39.color || (s39.percent === 0 ? F99(s49) : M49));
                    S49.attr('class', 'mbsc-lv-ic-c mbsc-lv-ic-' + (r39 ? 'move-' : '') + (s49 < 0 ? 'right' : 'left'));
                    u79.attr('class', ' mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-' + (s39.icon || 'none'));
                    g79.attr('class', 'mbsc-lv-ic-text' + (s39.icon ? '' : ' mbsc-lv-ic-text-only') + (e39 ? '' : ' mbsc-lv-ic-only')).html(e39 || '&nbsp;');
                    if (v49.animateIcons) {
                        if (l89) {
                            u79.addClass('mbsc-lv-ic-v');
                        } else {
                            setTimeout(function() {
                                u79.addClass('mbsc-lv-ic-a');
                            }, 10);
                        }
                    }
                }

                function C89() {
                    clearTimeout(h79);
                    if (!y89 && X49.sortable) {
                        y89 = true;
                        J79.remove();
                    }
                }

                function z99(I39, B39, V39, O39) {
                    B39 = Math.max(F89, Math.min(B39, c89));
                    N79 = I39[0].style;
                    N79[w49 + 'Transform'] = 'translate3d(0,' + B39 + 'px,0)';
                    N79[w49 + 'Transition'] = E49 + 'transform ' + (V39 || 0) + 'ms ease-out';
                    if (O39) {
                        l79++;
                        setTimeout(function() {
                            O39();
                            l79--;
                        }, V39);
                    }
                }

                function U79(u39, v39, o39, k39, J39) {
                    v39 = Math.max(H79 == 'right' ? 0 : -100, Math.min(v39, H79 == 'left' ? 0 : 100));
                    N79 = u39[0].style;
                    u39.attr('data-pos', v39);
                    N79[w49 + 'Transform'] = 'translate3d(' + (k39 ? E79 * v39 / 100 + 'px' : v39 + '%') + ',0,0)';
                    N79[w49 + 'Transition'] = E49 + 'transform ' + (o39 || 0) + 'ms';
                    if (J39) {
                        l79++;
                        setTimeout(function() {
                            J39();
                            l79--;
                        }, o39);
                    }
                    s49 = v39;
                }

                function e79(Y39, L39, X39) {
                    q49(P49).off('.mbsc-lv-conf');
                    S49.off('.mbsc-lv-conf');
                    if (L39 !== false) {
                        U79(Y39, 0, Y39.attr('data-pos') !== '0' ? 200 : 0, false, function() {
                            v89(Y39, X39);
                            Y79(Y39);
                        });
                    } else {
                        v89(Y39, X39);
                    }
                    a49 = false;
                }

                function D89() {
                    U79(L49, W89 + g49 * 100 / E79);
                    H89 = false;
                }

                function S89(Z39, d39, M39, E39, A39) {
                    var t39, U39;
                    a49 = true;
                    q49(P49).off('.mbsc-lv-conf').on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(Q39) {
                        Q39.preventDefault();
                        if (E39) {
                            y99(d39);
                        }
                        e79(d39, true, A39);
                    });
                    if (!B79) {
                        S49.off('.mbsc-lv-conf').on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(m39) {
                            m39.stopPropagation();
                            t39 = K49(m39, 'X');
                            U39 = K49(m39, 'Y');
                        }).on('touchend.mbsc-lv-conf mouseup.mbsc-lv-conf', function(p39) {
                            p39.preventDefault();
                            if (p39.type === 'touchend') {
                                c49.preventClick();
                            }
                            if (Math.abs(K49(p39, 'X') - t39) < 10 && Math.abs(K49(p39, 'Y') - U39) < 10) {
                                p89(Z39, d39, M39, A39);
                                if (E39) {
                                    R89 = null;
                                    y99(d39);
                                }
                            }
                        });
                    }
                }

                function p89(F39, a39, i39, C39) {
                    var P39, x39 = {
                        icon: 'undo2',
                        text: v49.undoText,
                        color: '#b1b1b1',
                        action: function() {
                            X49.undo();
                        }
                    };
                    if (F39.undo) {
                        X49.startActionTrack();
                        if (q49.isFunction(F39.undo)) {
                            X49.addUndoAction(function() {
                                F39.undo.call(G49, {
                                    target: a39[0],
                                    index: i39
                                }, X49);
                            });
                        }
                        W79 = a39.attr('data-ref');
                    }
                    P39 = F39.action.call(G49, {
                        target: a39[0],
                        index: i39
                    }, X49);
                    if (F39.undo) {
                        X49.endActionTrack();
                        if (P39 !== false) {
                            U79(a39, +a39.attr('data-pos') < 0 ? -100 : 100, 200);
                        }
                        z79.height(O49).insertAfter(a39);
                        a39.css('top', r49).addClass('mbsc-lv-item-undo');
                        a89.hide();
                        S49.show();
                        B49.append(S49);
                        N89(x39);
                        S89(x39, a39, i39, true, C39);
                    } else {
                        e79(a39, P39, C39);
                    }
                }

                function g89(w39, K39) {
                    if (m79(K39.disabled, {
                            target: L49[0],
                            index: u49
                        })) {
                        q49('.mbsc-ic-' + K39.icon, B49).addClass('mbsc-lv-ic-disabled');
                    }
                }

                function M99() {
                    if (x79 || !T79) {
                        var b39, l39 = k49.scrollTop(),
                            y39 = V49.offset().top,
                            H39 = V49[0].offsetHeight,
                            f39 = y79 ? k49.offset().top : l39;
                        q49('.mbsc-lv-gr-title', V49).each(function(c39, q39) {
                            if (q49(q39).offset().top < f39) {
                                b39 = q39;
                            }
                        });
                        if (y39 < f39 && y39 + H39 > f39) {
                            b79.show().empty().append(q49(b39).clone());
                        } else {
                            b79.hide();
                        }
                    }
                }

                function n89(T39) {
                    if (D79) {
                        T39.stopPropagation();
                        T39.preventDefault();
                        D79 = false;
                    }
                }

                function o89() {
                    clearTimeout(a99);
                    a99 = setTimeout(function() {
                        X79 = k49[0].innerHeight || k49.innerHeight();
                        Z89 = y79 ? k49.offset().top : 0;
                        if (T79) {
                            r49 = L49[0].offsetTop;
                            O49 = L49[0].offsetHeight;
                            B49.css({
                                top: r49,
                                height: O49
                            });
                        }
                    }, 200);
                }

                function r89() {
                    if (!z89) {
                        clearTimeout(b99);
                        if (a49) {
                            q49(P49).trigger('touchstart');
                        }
                        if (Q89) {
                            X49.close(q79, b89);
                            Q89 = false;
                            q79 = null;
                        }
                    }
                }

                function I79(D99, W99, R39, z39) {
                    D99.removeClass('mbsc-lv-item-dragging');
                    z79.remove();
                    I49('onSortEnd', {
                        target: D99[0],
                        index: D49
                    });
                    if (v49.vibrate) {
                        U49();
                    }
                    if (z39) {
                        X49.addUndoAction(function(N39) {
                            X49.move(D99, W99, null, N39, R39, true);
                        }, true);
                        I49('onSortUpdate', {
                            target: D99[0],
                            index: D49
                        });
                    }
                }

                function J89() {
                    x79 = true;
                    R79 = false;
                    f79 = false;
                    L79 = 0;
                    D49 = u49;
                    if (v49.vibrate) {
                        U49();
                    }
                    h49 = n79(L49, 'next');
                    c79 = h49.length && h49[0].offsetTop;
                    e49 = n79(L49, 'prev');
                    K79 = e49.length && e49[0].offsetTop + e49[0].offsetHeight;
                    z79.height(O49).insertAfter(L49);
                    L49.css({
                        top: r49
                    }).addClass('mbsc-lv-item-dragging').removeClass('mbsc-lv-item-active').appendTo(d99);
                    I49('onSortStart', {
                        target: L49[0],
                        index: D49
                    });
                }

                function l99(r99) {
                    var j99, g99, n99, G99 = false,
                        h99 = true;
                    p49(N99);
                    H89 = false;
                    if (!t79) {
                        D89();
                    }
                    if (J49.actions) {
                        if (Math.abs(s49) > 10 && O79) {
                            U79(L49, s49 < 0 ? -O79 : O79, 200);
                            G99 = true;
                            a49 = true;
                            j89 = L49;
                            f99 = u49;
                            q49(P49).on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(S99) {
                                S99.preventDefault();
                                e79(L49, true, r99);
                            });
                        }
                    } else if (s49) {
                        if (v49.quickSwipe && !t79) {
                            n99 = new Date() - h89;
                            j99 = n99 < 300 && g49 < -50;
                            g99 = n99 < 300 && g49 > 50;
                            if (j99) {
                                l89 = true;
                                n49 = J49.left;
                                N89(n49, v49.iconSlide);
                            } else if (g99) {
                                l89 = true;
                                n49 = J49.right;
                                N89(n49, v49.iconSlide);
                            }
                        }
                        if (n49 && n49.action) {
                            A99 = m79(n49.disabled, {
                                target: L49[0],
                                index: u49
                            });
                            if (!A99) {
                                G99 = true;
                                a49 = t79 || m79(n49.confirm, {
                                    target: L49[0],
                                    index: u49
                                });
                                if (a49) {
                                    U79(L49, (s49 < 0 ? -1 : 1) * S49[0].offsetWidth * 100 / E79, 200, true);
                                    S89(n49, L49, u49, false, r99);
                                } else {
                                    p89(n49, L49, u49, r99);
                                }
                            }
                        }
                    }
                    if (!G99) {
                        e79(L49, h99, r99);
                    }
                    H79 = false;
                }

                function V89() {
                    var e99 = false;
                    if (!H89) {
                        if (J49.actions) {
                            B49.attr('class', 'mbsc-lv-stage-c-v mbsc-lv-stage-c mbsc-lv-' + (s49 < 0 ? 'right' : 'left'));
                        } else {
                            if (F79 && s49 <= F79.percent) {
                                a79--;
                                i79 = F79;
                                F79 = v79[a79];
                                e99 = true;
                            } else if (i79 && s49 >= i79.percent) {
                                a79++;
                                F79 = i79;
                                i79 = v79[a79];
                                e99 = true;
                            }
                            if (e99) {
                                n49 = s49 > 0 ? F79 : i79;
                                if (n49) {
                                    N89(n49, v49.iconSlide);
                                    I49('onStageChange', {
                                        target: L49[0],
                                        index: u49,
                                        stage: n49
                                    });
                                }
                            }
                        }
                        if (!t79) {
                            H89 = true;
                            N99 = m49(D89);
                        }
                    }
                }

                function I89() {
                    H79 = m79(J49.swipe, {
                        target: L49[0],
                        index: u49,
                        direction: g49 > 0 ? 'right' : 'left'
                    });
                    if (H79) {
                        C89();
                        clearTimeout(M79);
                        if (J49.actions) {
                            O79 = P99(J49, g49);
                            a89.html(J49.icons).show().children().css('width', O79 + '%');
                            S49.hide();
                            q49('.mbsc-lv-ic-m', B49).removeClass('mbsc-lv-ic-disabled');
                            q49(J49.leftMenu).each(g89);
                            q49(J49.rightMenu).each(g89);
                        } else {
                            S49.show();
                            a89.hide();
                            a79 = J49.start + (g49 > 0 ? 0 : 1);
                            F79 = v79[a79 - 1];
                            i79 = v79[a79];
                        }
                        L49.addClass('mbsc-lv-item-swiping').removeClass('mbsc-lv-item-active');
                        g79.css('line-height', O49 + 'px');
                        B49.css({
                            top: r49,
                            height: O49,
                            backgroundColor: F99(g49)
                        }).addClass('mbsc-lv-stage-c-v').appendTo(j49.parent());
                        if (v49.iconSlide) {
                            L49.append(S49);
                        }
                        I49('onSlideStart', {
                            target: L49[0],
                            index: u49
                        });
                    }
                }

                function f89(V99) {
                    var O99, k99, B99, I99, s99 = L49;
                    if (T79) {
                        T79 = false;
                        C89();
                        if (V99.type == 'mouseup') {
                            q49(P49).off('mousemove', k89).off('mouseup', f89);
                        }
                        if (!A79) {
                            T99 = setTimeout(function() {
                                z89 = false;
                            }, 300);
                        }
                        if (H79 || A79 || x79) {
                            D79 = true;
                        }
                        if (H79) {
                            l99();
                        } else if (x79) {
                            B99 = j49;
                            if (R79) {
                                Y79(L49.detach());
                                k99 = W49[R79.attr('data-ref')];
                                D49 = o79(k99.child).length;
                                R79.removeClass('mbsc-lv-item-hl');
                                if (v49.navigateOnDrop) {
                                    U89(R79, function() {
                                        X49.add(null, L49, null, null, R79, true);
                                        k79(L49);
                                        I79(L49, u49, B99, true);
                                    });
                                } else {
                                    X49.add(null, L49, null, null, R79, true);
                                    I79(L49, u49, B99, true);
                                }
                            } else if (f79) {
                                Y79(L49.detach());
                                k99 = W49[f79.attr('data-back')];
                                D49 = o79(k99.parent).index(k99.item) + 1;
                                f79.removeClass('mbsc-lv-item-hl');
                                if (v49.navigateOnDrop) {
                                    U89(f79, function() {
                                        X49.add(null, L49, D49, null, j49, true);
                                        k79(L49);
                                        I79(L49, u49, B99, true);
                                    });
                                } else {
                                    X49.add(null, L49, D49, null, k99.parent, true);
                                    I79(L49, u49, B99, true);
                                }
                            } else {
                                O99 = z79[0].offsetTop - r49;
                                z99(L49, O99, Math.abs(O99 - Math.max(F89, Math.min(d79 + L79, c89))) * 6, function() {
                                    Y79(L49);
                                    L49.insertBefore(z79);
                                    I79(L49, u49, B99, D49 !== u49);
                                });
                            }
                            x79 = false;
                        } else if (!A79 && Math.abs(g49) < 5 && Math.abs(d79) < 5) {
                            if (J49.tap) {
                                I99 = J49.tap.call(G49, {
                                    target: L49,
                                    index: u49,
                                    domEvent: V99
                                }, X49);
                            }
                            if (B89) {
                                if (V99.type === 'touchend') {
                                    c49.preventClick();
                                }
                                L49.addClass('mbsc-lv-item-active');
                                I49('onItemActivate', {
                                    target: L49[0],
                                    domEvent: V99
                                });
                            }
                            I99 = I49('onItemTap', {
                                target: L49[0],
                                index: u49,
                                domEvent: V99
                            });
                            if (I99 !== false) {
                                U89(L49);
                            }
                        }
                        clearTimeout(M79);
                        setTimeout(function() {
                            s99.removeClass('mbsc-lv-item-active');
                            I49('onItemDeactivate', {
                                target: s99[0]
                            });
                        }, 100);
                        A79 = false;
                        n49 = null;
                    }
                }

                function k89(L99) {
                    var X99 = false,
                        v99 = true;
                    if (T79) {
                        x99 = K49(L99, 'X');
                        i99 = K49(L99, 'Y');
                        g49 = x99 - r79;
                        d79 = i99 - G79;
                        clearTimeout(C99);
                        if (!x79 && !H79 && !A79 && !L49.hasClass('mbsc-lv-back')) {
                            if (Math.abs(d79) > 10) {
                                A79 = true;
                                f89(A49({}, L99, {
                                    type: L99.type == 'mousemove' ? 'mouseup' : 'touchend'
                                }));
                                clearTimeout(M79);
                            } else if (Math.abs(g49) > 7) {
                                I89();
                            }
                        }
                        if (H79) {
                            L99.preventDefault();
                            s49 = g49 / E79 * 100;
                            V89();
                        } else if (x79) {
                            L99.preventDefault();
                            var J99, u99 = k49.scrollTop(),
                                Y99 = Math.max(F89, Math.min(d79 + L79, c89)),
                                o99 = y79 ? L89 - Z89 + u99 - L79 : L89;
                            if (X79 + u99 < o99 + Y99 + O49) {
                                k49.scrollTop(o99 + Y99 - X79 + O49);
                                J99 = true;
                            } else if (o99 + Y99 < u99) {
                                k49.scrollTop(o99 + Y99);
                                J99 = true;
                            }
                            if (J99) {
                                L79 += k49.scrollTop() - u99;
                            }
                            if (c79) {
                                if (X49.sortable.multiLevel && h49.hasClass('mbsc-lv-parent')) {
                                    if (r49 + O49 / 4 + Y99 > c79) {
                                        X99 = true;
                                    } else if (r49 + O49 - O49 / 4 + Y99 > c79) {
                                        R79 = h49.addClass('mbsc-lv-item-hl');
                                        v99 = false;
                                    }
                                } else if (r49 + O49 / 2 + Y99 > c79) {
                                    if (h49.hasClass('mbsc-lv-back')) {
                                        if (X49.sortable.multiLevel) {
                                            f79 = h49.addClass('mbsc-lv-item-hl');
                                            v99 = false;
                                        }
                                    } else {
                                        X99 = true;
                                    }
                                }
                                if (X99) {
                                    z79.insertAfter(h49);
                                    e49 = h49;
                                    h49 = n79(h49, 'next');
                                    K79 = c79;
                                    c79 = h49.length && h49[0].offsetTop;
                                    D49++;
                                }
                            }
                            if (!X99 && K79) {
                                if (X49.sortable.multiLevel && e49.hasClass('mbsc-lv-parent')) {
                                    if (r49 + O49 - O49 / 4 + Y99 < K79) {
                                        X99 = true;
                                    } else if (r49 + O49 / 4 + Y99 < K79) {
                                        R79 = e49.addClass('mbsc-lv-item-hl');
                                        v99 = false;
                                    }
                                } else if (r49 + O49 / 2 + Y99 < K79) {
                                    if (e49.hasClass('mbsc-lv-back')) {
                                        if (X49.sortable.multiLevel) {
                                            f79 = e49.addClass('mbsc-lv-item-hl');
                                            v99 = false;
                                        }
                                    } else {
                                        X99 = true;
                                    }
                                }
                                if (X99) {
                                    z79.insertBefore(e49);
                                    h49 = e49;
                                    e49 = n79(e49, 'prev');
                                    c79 = K79;
                                    K79 = e49.length && e49[0].offsetTop + e49[0].offsetHeight;
                                    D49--;
                                }
                            }
                            if (v99) {
                                if (R79) {
                                    R79.removeClass('mbsc-lv-item-hl');
                                    R79 = false;
                                }
                                if (f79) {
                                    f79.removeClass('mbsc-lv-item-hl');
                                    f79 = false;
                                }
                            }
                            if (X99) {
                                I49('onSortChange', [L49, D49]);
                            }
                            z99(L49, Y99);
                            I49('onSort', [L49, D49]);
                        } else if (Math.abs(g49) > 5 || Math.abs(d79) > 5) {
                            C89();
                        }
                    }
                }

                function Q99(m99) {
                    var p99;
                    if (m99.type === 'touchstart') {
                        z89 = true;
                        clearTimeout(T99);
                    }
                    if (Q49(m99, this) && !T79 && !l79 && !a49 && !T89) {
                        T79 = true;
                        y89 = true;
                        r79 = K49(m99, 'X');
                        G79 = K49(m99, 'Y');
                        g49 = 0;
                        d79 = 0;
                        L49 = q49(this);
                        p99 = L49;
                        e89();
                        B89 = v49.onItemTap || J49.tap || L49.hasClass('mbsc-lv-parent') || L49.hasClass('mbsc-lv-back');
                        Z99 = V49.offset().top;
                        L89 = L49.offset().top;
                        if (B89) {
                            M79 = setTimeout(function() {
                                p99.addClass('mbsc-lv-item-active');
                                I49('onItemActivate', {
                                    target: p99[0],
                                    domEvent: m99
                                });
                            }, 120);
                        }
                        if (X49.sortable && !L49.hasClass('mbsc-lv-back')) {
                            if (!X49.sortable.group) {
                                t89 = L49.nextUntil('.mbsc-lv-gr-title').filter('.mbsc-lv-item');
                                X89 = L49.prevUntil('.mbsc-lv-gr-title').filter('.mbsc-lv-item');
                            }
                            F89 = (!X49.sortable.group ? X89.length ? X89.eq(-1) : L49 : j49.children('li').eq(0))[0].offsetTop - r49;
                            c89 = (!X49.sortable.group ? t89.length ? t89.eq(-1) : L49 : j49.children('li').eq(-1))[0].offsetTop - r49;
                            if (X49.sortable.handle) {
                                if (q49(m99.target).hasClass('mbsc-lv-handle')) {
                                    clearTimeout(M79);
                                    if (w49 === 'Moz') {
                                        m99.preventDefault();
                                        J89();
                                    } else {
                                        h79 = setTimeout(function() {
                                            J89();
                                        }, 100);
                                    }
                                }
                            } else {
                                h79 = setTimeout(function() {
                                    J79.appendTo(L49);
                                    J79[0].style[w49 + 'Animation'] = 'mbsc-lv-fill ' + (v49.sortDelay - 100) + 'ms linear';
                                    clearTimeout(C99);
                                    clearTimeout(M79);
                                    y89 = false;
                                    h79 = setTimeout(function() {
                                        J79[0].style[w49 + 'Animation'] = '';
                                        J89();
                                    }, v49.sortDelay - 80);
                                }, 80);
                            }
                        }
                        if (m99.type == 'mousedown') {
                            q49(P49).on('mousemove', k89).on('mouseup', f89);
                        }
                    }
                }

                function e89() {
                    l89 = false;
                    D79 = false;
                    s49 = 0;
                    W89 = 0;
                    h89 = new Date();
                    E79 = j49.width();
                    w99 = o79(j49);
                    u49 = w99.index(L49);
                    O49 = L49[0].offsetHeight;
                    r49 = L49[0].offsetTop;
                    J49 = p79[L49.attr('data-type') || 'defaults'];
                    v79 = J49.stages;
                }
                var T79, O79, M79, s49, y89, j89, f99, o49, D49, j49, s79, j79, w99, n49, a79, a99, B79, A99, g49, d79, R79, f79, x79, d99, C99, x99, i99, I49, J79, q89, b79, Y89, t99, y79, K99, c99, q79, Q89, b89, O89, b99, P89, x89, u79, S49, B49, E79, L49, O49, u49, L89, Z99, c89, F89, a89, h49, c79, i79, t89, S79, D79, z89, T99, X89, z79, e49, K79, F79, l89, N99, H89, v49, A79, t79, d89, M89, v79, W89, h89, r79, G79, N79, H79, u89, G89, B89, g79, h79, J49, p79, W79, R89, k49, X79, L79, Z89, X49 = this,
                    G49 = R99,
                    V49 = q49(G49),
                    l79 = 0,
                    C79 = 0,
                    r49 = 0,
                    V79 = {},
                    K89 = {},
                    W49 = {};
                d49.Base.call(this, R99, s89, true);
                X49.animate = function(j09, g09, h09) {
                    E99(j09, 'mbsc-lv-item-' + g09, h09);
                };
                X49.add = function(F5z, c5z, z5z, l5z, a5z, T5z) {
                    var q5z, f5z, H5z, w5z, N5z, b5z, y5z = '',
                        D09 = a5z === F49 ? V49 : Z79(a5z),
                        W09 = D09,
                        S09 = typeof c5z !== 'object' ? q49('<li data-ref="' + C49++ + '" data-id="' + F5z + '">' + c5z + '</li>') : c5z,
                        K5z = S09.attr('data-pos') < 0 ? 'left' : 'right',
                        R5z = S09.attr('data-ref');
                    l5z = l5z || x49;
                    if (!R5z) {
                        R5z = C49++;
                        S09.addClass('mbsc-lv-item').attr('data-ref', R5z);
                    }
                    H99(S09);
                    if (!T5z) {
                        X49.addUndoAction(function(i5z) {
                            if (w5z) {
                                X49.navigate(D09, function() {
                                    W09.remove();
                                    D09.removeClass('mbsc-lv-parent').children('.mbsc-lv-arr').remove();
                                    N5z.child = D09.children('ul,ol');
                                    X49.remove(S09, null, i5z, true);
                                });
                            } else {
                                X49.remove(S09, null, i5z, true);
                            }
                        }, true);
                    }
                    E89(S09, function(P5z) {
                        Y79(S09.css('top', '').removeClass('mbsc-lv-item-undo'));
                        if (D09.is('li')) {
                            b5z = D09.attr('data-ref');
                            if (!D09.children('ul,ol').length) {
                                w5z = true;
                                D09.append('<ul></ul>');
                            }
                        } else {
                            b5z = D09.children('.mbsc-lv-back').attr('data-back');
                        }
                        N5z = W49[b5z];
                        if (N5z) {
                            if (!N5z.child.length) {
                                D09.addClass('mbsc-lv-parent').prepend(x89);
                                W09 = D09.children('ul,ol').prepend(P89).addClass('mbsc-lv');
                                N5z.child = W09;
                                q49('.mbsc-lv-back', D09).attr('data-back', b5z);
                            } else {
                                W09 = N5z.child;
                            }
                        }
                        W49[R5z] = {
                            item: S09,
                            child: S09.children('ul,ol'),
                            parent: W09,
                            ref: b5z
                        };
                        H5z = o79(W09);
                        f5z = H5z.length;
                        if (z5z === F49 || z5z === null) {
                            z5z = f5z;
                        }
                        if (T5z) {
                            y5z = 'mbsc-lv-item-new-' + (T5z ? K5z : '');
                        }
                        q99(S09.addClass(y5z));
                        if (z5z !== false) {
                            if (!f5z) {
                                q5z = q49('.mbsc-lv-back', W09);
                                if (q5z.length) {
                                    S09.insertAfter(q5z);
                                } else {
                                    W09.append(S09);
                                }
                            } else if (z5z < f5z) {
                                S09.insertBefore(H5z.eq(z5z));
                            } else {
                                S09.insertAfter(H5z.eq(f5z - 1));
                            }
                        }
                        if (W09.hasClass('mbsc-lv-v')) {
                            X49.animate(S09.height(S09[0].offsetHeight), T5z && W79 === R5z ? 'none' : 'expand', function(x5z) {
                                X49.animate(x5z.height(''), T5z ? 'add-' + K5z : 'pop-in', function(C5z) {
                                    l5z.call(G49, C5z.removeClass(y5z));
                                    P5z();
                                });
                            });
                        } else {
                            l5z.call(G49, S09.removeClass(y5z));
                            P5z();
                        }
                        o49.trigger('mbsc-enhance', [{
                            theme: v49.theme,
                            lang: v49.lang
                        }]);
                        I49('onItemAdd', {
                            target: S09[0]
                        });
                    });
                };
                X49.swipe = function(d5z, A5z, E5z, t5z, U5z) {
                    d5z = Z79(d5z);
                    L49 = d5z;
                    B79 = t5z;
                    t79 = true;
                    T79 = true;
                    E5z = E5z === F49 ? 300 : E5z;
                    g49 = A5z > 0 ? 1 : -1;
                    e89();
                    I89();
                    U79(d5z, A5z, E5z);
                    clearTimeout(G89);
                    clearInterval(u89);
                    u89 = setInterval(function() {
                        s49 = c49.getPosition(d5z) / E79 * 100;
                        V89();
                    }, 10);
                    G89 = setTimeout(function() {
                        clearInterval(u89);
                        s49 = A5z;
                        V89();
                        l99(U5z);
                        B79 = false;
                        t79 = false;
                        T79 = false;
                    }, E5z);
                };
                X49.openStage = function(M5z, Z5z, Q5z, m5z) {
                    if (V79[Z5z]) {
                        X49.swipe(M5z, V79[Z5z].percent, Q5z, m5z);
                    }
                };
                X49.openActions = function(p5z, X5z, L5z, v5z) {
                    p5z = Z79(p5z);
                    var Y5z = P99(p79[p5z.attr('data-type') || 'defaults'], X5z == 'left' ? -1 : 1);
                    X49.swipe(p5z, X5z == 'left' ? -Y5z : Y5z, L5z, v5z);
                };
                X49.close = function(u5z, o5z) {
                    X49.swipe(u5z, 0, o5z);
                };
                X49.remove = function(J5z, V5z, k5z, I5z) {
                    var s5z, B5z, O5z;
                    k5z = k5z || x49;
                    J5z = Z79(J5z);
                    if (J5z.length) {
                        B5z = J5z.parent();
                        s5z = o79(B5z).index(J5z);
                        O5z = J5z[0].style;
                        if (!I5z) {
                            if (J5z.attr('data-ref') === W79) {
                                R89 = true;
                            }
                            X49.addUndoAction(function(e5z) {
                                X49.add(null, J5z, s5z, e5z, B5z, true);
                            }, true);
                        }
                        E89(J5z, function(r5z) {
                            V5z = V5z || (J5z.attr('data-pos') < 0 ? 'left' : 'right');
                            if (B5z.hasClass('mbsc-lv-v')) {
                                X49.animate(J5z.addClass('mbsc-lv-removed'), I5z ? 'pop-out' : 'remove-' + V5z, function(G5z) {
                                    O5z.height = G5z[0].offsetHeight + 'px';
                                    X49.animate(G5z, 'collapse', function(n5z) {
                                        O5z.height = '';
                                        Y79(n5z.removeClass('mbsc-lv-removed'));
                                        if (k5z.call(G49, n5z) !== false) {
                                            n5z.remove();
                                        }
                                        r5z();
                                    });
                                });
                            } else {
                                if (k5z.call(G49, J5z) !== false) {
                                    J5z.remove();
                                }
                                r5z();
                            }
                            I49('onItemRemove', {
                                target: J5z[0]
                            });
                        });
                    }
                };
                X49.move = function(j5z, h5z, S5z, D5z, W5z, g5z) {
                    j5z = Z79(j5z);
                    if (!g5z) {
                        X49.startActionTrack();
                    }
                    B49.append(S49);
                    X49.remove(j5z, S5z, null, g5z);
                    X49.add(null, j5z, h5z, D5z, W5z, g5z);
                    if (!g5z) {
                        X49.endActionTrack();
                    }
                };
                X49.navigate = function(R1z, T1z) {
                    var z1z, N1z;
                    R1z = Z79(R1z);
                    z1z = W49[R1z.attr('data-ref')];
                    N1z = U99(R1z);
                    if (z1z) {
                        m89(N1z >= C79 ? 'r' : 'l', z1z.parent, R1z, T1z, true);
                        C79 = N1z;
                    }
                };
                X49._processSettings = function() {
                    if (V49.is('[mbsc-enhance]')) {
                        Y89 = true;
                        V49.removeAttr('mbsc-enhance');
                    }
                };
                X49._init = function() {
                    var H1z, q1z, c1z, f1z = 0,
                        y1z = '',
                        b1z = '',
						p = V49.find("ul,ol").length ? "left" : "right",
                        l1z = '';
  
					c1z = v49.sort || v49.sortable;;
					
					H1z = 'mbsc-lv-cont mbsc-lv-' + v49.theme + (v49.rtl ? ' mbsc-lv-rtl' : '') + (v49.baseTheme ? ' mbsc-lv-' + v49.baseTheme : '') + (v49.animateIcons ? ' mbsc-lv-ic-anim' : '') + (v49.striped ? ' mbsc-lv-alt-row ' : '') + (v49.fixedHeader ? ' mbsc-lv-has-fixed-header ' : '');
					
                    X49.sortable = c1z || false;
                    if (!o49) {
                        y1z += '<div class="mbsc-lv-multi-c"></div>';
                        y1z += '<div class="mbsc-lv-ic-c"><div class="mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"></div><div class="mbsc-lv-ic-text"></div></div>';
                        V49.addClass('mbsc-lv mbsc-lv-v mbsc-lv-root').show();
                        B49 = q49('<div class="mbsc-lv-stage-c">' + y1z + '</div>');
                        S49 = q49('.mbsc-lv-ic-c', B49);
                        a89 = q49('.mbsc-lv-multi-c', B49);
                        u79 = q49('.mbsc-lv-ic-s', B49);
                        g79 = q49('.mbsc-lv-ic-text', B49);
                        z79 = q49('<li class="mbsc-lv-item mbsc-lv-ph"></li>');
                        J79 = q49('<div class="mbsc-lv-fill-item"></div>');
                        o49 = q49('<div class="' + H1z + '"><ul class="mbsc-lv mbsc-lv-dummy"></ul><div class="mbsc-lv-sl-c"></div></div>');
                        y79 = v49.context !== 'body';
                        k49 = q49(y79 ? v49.context : t49);
                        d99 = q49('.mbsc-lv-dummy', o49);
                        o49.insertAfter(V49);
                        k49.on('orientationchange resize', o89);
                        o89();
                        o49.on('touchstart mousedown', '.mbsc-lv-item', Q99).on('touchmove', '.mbsc-lv-item', k89).on('touchend touchcancel', '.mbsc-lv-item', f89);
                        G49.addEventListener('click', n89, true);
                        o49.on('touchstart mousedown', '.mbsc-lv-ic-m', function(K1z) {
                            if (!B79) {
                                K1z.stopPropagation();
                                K1z.preventDefault();
                            }
                            r79 = K49(K1z, 'X');
                            G79 = K49(K1z, 'Y');
                        }).on('touchend mouseup', '.mbsc-lv-ic-m', function(w1z) {
                            if (!B79) {
                                if (w1z.type === 'touchend') {
                                    c49.preventClick();
                                }
                                if (a49 && !q49(this).hasClass('mbsc-lv-ic-disabled') && Math.abs(K49(w1z, 'X') - r79) < 10 && Math.abs(K49(w1z, 'Y') - G79) < 10) {
                                    p89((s49 < 0 ? J49.rightMenu : J49.leftMenu)[q49(this).index()], j89, f99);
                                }
                            }
                        });
                        d89 = q49('.mbsc-lv-sl-c', o49).append(V49.addClass('mbsc-lv-sl-curr')).attr('data-ref', C49++);
                        j49 = V49;
                        j79 = o49;
                    } else {
                        o49.attr('class', H1z);
                        if (c1z.handle) {
                            q49('.mbsc-lv-handle-c', V49).remove();
                        }
                        q49('li:not(.mbsc-lv-back)', V49).removeClass('mbsc-lv-item');
                    }
					
					P89 = '<li class="mbsc-lv-item mbsc-lv-back">' + v49.backText + '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + v49.leftArrowClass + '"></div></li>';
					x89 = '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + v49.rightArrowClass + '"></div>';
					if (X49.sortable.handle) {
						var t59 = X49.sortable.handle === true ? p : X49.sortable.handle;
						K99 = '<div class="mbsc-lv-handle-c mbsc-lv-item-h-' + t59 + ' mbsc-lv-handle"><div class="' + v49.handleClass + ' mbsc-lv-handle-bar-c mbsc-lv-handle">' + v49.handleMarkup + '</div></div>';
					}
					
                    q99(V49);
                    M89 = 0;
                    p79 = v49.itemGroups || {};
                    p79.defaults = {
                        swipeleft: v49.swipeleft,
                        swiperight: v49.swiperight,
                        stages: v49.stages,
                        actions: v49.actions,
                        actionsWidth: v49.actionsWidth
                    };
                    q49.each(p79, function(F1z, a1z) {
                        a1z.swipe = a1z.swipe !== F49 ? a1z.swipe : v49.swipe;
                        a1z.stages = a1z.stages || [];
                        i89(a1z.stages, 1, true);
                        i89(a1z.stages.left, 1);
                        i89(a1z.stages.right, -1);
                        if (a1z.stages.left || a1z.stages.right) {
                            a1z.stages = [].concat(a1z.stages.left || [], a1z.stages.right || []);
                        }
                        q89 = false;
                        if (!a1z.stages.length) {
                            if (a1z.swipeleft) {
                                a1z.stages.push({
                                    percent: -30,
                                    action: a1z.swipeleft
                                });
                            }
                            if (a1z.swiperight) {
                                a1z.stages.push({
                                    percent: 30,
                                    action: a1z.swiperight
                                });
                            }
                        }
                        q49.each(a1z.stages, function(P1z, i1z) {
                            if (i1z.percent === 0) {
                                q89 = true;
                                return false;
                            }
                        });
                        if (!q89) {
                            a1z.stages.push({
                                percent: 0
                            });
                        }
                        a1z.stages.sort(function(x1z, C1z) {
                            return x1z.percent - C1z.percent;
                        });
                        q49.each(a1z.stages, function(d1z, E1z) {
                            if (E1z.percent === 0) {
                                a1z.start = d1z;
                                return false;
                            }
                        });
                        if (q89) {
                            a1z.left = a1z.right = a1z.stages[a1z.start];
                        } else {
                            a1z.left = a1z.stages[a1z.start - 1] || {};
                            a1z.right = a1z.stages[a1z.start + 1] || {};
                        }
                        if (a1z.actions) {
                            a1z.leftMenu = a1z.actions.left || a1z.actions;
                            a1z.rightMenu = a1z.actions.right || a1z.leftMenu;
                            b1z = '';
                            l1z = '';
                            for (f1z = 0; f1z < a1z.leftMenu.length; f1z++) {
                                b1z += '<div ' + (a1z.leftMenu[f1z].color ? 'style="background-color: ' + a1z.leftMenu[f1z].color + '"' : '') + ' class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + a1z.leftMenu[f1z].icon + '">' + (a1z.leftMenu[f1z].text || '') + '</div>';
                            }
                            for (f1z = 0; f1z < a1z.rightMenu.length; ++f1z) {
                                l1z += '<div ' + (a1z.rightMenu[f1z].color ? 'style="background-color: ' + a1z.rightMenu[f1z].color + '"' : '') + ' class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + a1z.rightMenu[f1z].icon + '">' + (a1z.rightMenu[f1z].text || '') + '</div>';
                            }
                            if (a1z.actions.left) {
                                a1z.swipe = a1z.actions.right ? a1z.swipe : 'right';
                            }
                            if (a1z.actions.right) {
                                a1z.swipe = a1z.actions.left ? a1z.swipe : 'left';
                            }
                            a1z.icons = '<div class="mbsc-lv-multi mbsc-lv-multi-ic-left">' + b1z + '</div><div class="mbsc-lv-multi mbsc-lv-multi-ic-right">' + l1z + '</div>';
                        }
                    });
                    if (v49.fixedHeader) {
                        q1z = 'mbsc-lv-fixed-header' + (y79 ? ' mbsc-lv-fixed-header-ctx mbsc-lv-' + v49.theme + (v49.baseTheme ? ' mbsc-lv-' + v49.baseTheme : '') : '');
                        if (!b79) {
                            b79 = q49('<div class="' + q1z + '"></div>');
                            if (y79) {
                                k49.before(b79);
                            } else {
                                o49.prepend(b79);
                            }
                            S79 = c49.throttle(M99, 200);
                            k49.on('scroll touchmove', S79);
                        } else {
                            b79.attr('class', q1z);
                        }
                    }
                    if (v49.hover) {
                        if (!b89) {
                            o49.on('mouseover.mbsc-lv', '.mbsc-lv-item', function() {
                                if (!q79 || q79[0] != this) {
                                    r89();
                                    q79 = q49(this);
                                    if (p79[q79.attr('data-type') || 'defaults'].actions) {
                                        b99 = setTimeout(function() {
                                            if (!z89) {
                                                Q89 = true;
                                                X49.openActions(q79, c99, b89, false);
                                            } else {
                                                q79 = null;
                                            }
                                        }, O89);
                                    }
                                }
                            }).on('mouseleave.mbsc-lv', r89);
                        }
                        b89 = v49.hover.time || 200;
                        O89 = v49.hover.timeout || 200;
                        c99 = v49.hover.direction || v49.hover || 'right';
                    }
                    if (Y89) {
                        o49.attr('mbsc-enhance', '');
                    }
                    o49.trigger('mbsc-enhance', [{
                        theme: v49.theme,
                        lang: v49.lang
                    }]);
                };
                X49._destroy = function() {
                    j79.append(j49);
                    if (y79 && b79) {
                        b79.remove();
                    }
                    if (Y89) {
                        V49.attr('mbsc-enhance', '');
                    }
                    G49.removeEventListener('click', n89, true);
                    o49.find('.mbsc-lv-txt,.mbsc-lv-img').removeClass('mbsc-lv-txt mbsc-lv-img');
                    o49.find('ul,ol').removeClass('mbsc-lv mbsc-lv-v mbsc-lv-root mbsc-lv-sl-curr').find('li').removeClass('mbsc-lv-gr-title mbsc-lv-item mbsc-lv-item-enhanced mbsc-lv-parent mbsc-lv-img-left mbsc-lv-img-right mbsc-lv-item-ic-left mbsc-lv-item-ic-right').removeAttr('data-ref');
                    q49('.mbsc-lv-back,.mbsc-lv-handle-c,.mbsc-lv-arr,.mbsc-lv-item-ic', o49).remove();
                    V49.insertAfter(o49);
                    o49.remove();
                    B49.remove();
                    k49.off('orientationchange resize', o89);
                    if (S79) {
                        k49.off('scroll touchmove', S79);
                    }
                };
                var T89, A89 = [],
                    P79 = [],
                    w89 = [],
                    Q79 = 0;
                X49.startActionTrack = function() {
                    if (!Q79) {
                        w89 = [];
                    }
                    Q79++;
                };
                X49.endActionTrack = function() {
                    Q79--;
                    if (!Q79) {
                        P79.push(w89);
                    }
                };
                X49.addUndoAction = function(t1z, U1z) {
                    var A1z = {
                        action: t1z,
                        async: U1z
                    };
                    if (Q79) {
                        w89.push(A1z);
                    } else {
                        P79.push([A1z]);
                        if (P79.length > v49.undoLimit) {
                            P79.shift();
                        }
                    }
                };
                X49.undo = function() {
                    function p1z() {
                        Q1z = A89.shift();
                        if (Q1z) {
                            T89 = true;
                            M1z = Q1z.length - 1;
                            m1z();
                        }
                    }

                    function m1z() {
                        if (M1z < 0) {
                            T89 = false;
                            p1z();
                        } else {
                            Z1z = Q1z[M1z];
                            M1z--;
                            if (Z1z.async) {
                                Z1z.action(m1z);
                            } else {
                                Z1z.action();
                                m1z();
                            }
                        }
                    }
                    var Z1z, M1z, Q1z;
                    if (P79.length) {
                        A89.push(P79.pop());
                    }
                    if (!T89) {
                        p1z();
                    }
                };
                v49 = X49.settings;
                I49 = X49.trigger;
                X49.init(s89);
            };
            d49.ListView.prototype = {
                _class: 'listview',
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _defaults: {
                    context: 'body',
                    actionsWidth: 90,
                    sortDelay: 250,
                    undoLimit: 10,
                    swipe: true,
                    quickSwipe: true,
                    animateIcons: true,
                    animation: true,
                    revert: true,
                    vibrate: true,
                    handleClass: '',
                    handleMarkup: '<div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div>',
                    leftArrowClass: 'mbsc-ic-arrow-left4',
                    rightArrowClass: 'mbsc-ic-arrow-right4',
                    backText: 'Back',
                    undoText: 'Undo',
                    stages: []
                }
            };
            i49.themes.listview.mobiscroll = {
                leftArrowClass: 'mbsc-ic-arrow-left5',
                rightArrowClass: 'mbsc-ic-arrow-right5'
            };
            i49.presetShort('listview', 'ListView');
        }(window, document));
      
		
        (function(m5H) {
            function g5H(Q5H, F5H, v5H) {
                var e5H;
                Q5H = Y5H(Y5H.parseHTML ? Y5H.parseHTML(Q5H) : Q5H);
                if (Q5H.length == 1 && Q5H.is('li') || Y5H(Q5H[0]).is('li')) {
                    e5H = Q5H.clone();
                    Y5H(e5H[0]).attr('ng-repeat-start', 'item in ' + F5H);
                    Y5H(e5H).filter('li').eq(-1).attr('ng-repeat-end', '').attr('mobiscroll-listview-item', v5H);
                } else {
                    e5H = Y5H('<li></li>').append(Q5H.clone());
                    e5H.attr('ng-repeat', 'item in ' + F5H).attr('mobiscroll-listview-item', v5H);
                }
                return e5H;
            }

            function R5H(D5H) {
                var H5H, l5H = 0;
                if (!D5H) {
                    return l5H;
                }
                for (H5H = 0; H5H < D5H.length; H5H++) {
                    l5H++;
                    if (D5H[H5H].children && D5H[H5H].children.length) {
                        l5H += R5H(D5H[H5H].children);
                    }
                }
                return l5H;
            }
            var A5H, Y5H = Z2K.$,
                b5H = +new Date(),
                d5H = [],
                f5H = {},
                W5H = {};
            try {
                A5H = J2K.module('ngAnimate');
            } catch (B5H) {}
            if (A5H) {
                d5H.push('ngAnimate');
            }
            J2K.module('mobiscroll-listview', d5H).directive('mobiscrollListviewItem', ['$compile', '$timeout', function(y5H, z5H) {
                return {
                    link: function T5H(o5H, c5H, U5H) {
                        var p5H, I5H, t5H, r5H = Y5H(c5H[0]),
                            X5H = r5H.parent('ul'),
                            E5H = U5H.mobiscrollListviewItem,
                            a5H = f5H[E5H],
                            u5H = r5H.parents('.mbsc-lv-cont').length;
                        a5H.nodesLeft--;
                        if (X5H && (u5H || a5H.nodesLeft === 0)) {
                            if (!u5H) {
                                o5H.$emit('mbscLvLastItemAdded', a5H.rootNode);
                            } else {
                                I5H = X5H.children('li').not('.mbsc-lv-back').index(r5H);
                                r5H.addClass('mbsc-lv-item').hide();
                                if (X5H.hasClass('mbsc-lv-root')) {
                                    z5H(function() {
                                        p5H = Z2K.instances[X5H[0].id];
                                        p5H.add(null, r5H.show(), I5H, m5H, X5H);
                                    });
                                } else {
                                    z5H(function() {
                                        X5H.prepend(X5H.children('.mbsc-lv-back'));
                                        t5H = X5H.parent('li');
                                        p5H = Z2K.instances[a5H.rootNode[0].id];
                                        p5H.add(null, r5H.show(), I5H, m5H, t5H.length ? t5H : X5H);
                                    });
                                }
                            }
                        }
                        r5H.append(y5H('<div style="display:none;"><ul><li mobiscroll-listview-hitem="' + E5H + '" ng-repeat="item in item.children"></li></ul></div>')(o5H)[0]);
                    }
                };
            }]).directive('mobiscrollListviewHitem', ['$compile', '$timeout', function(q6H) {
                return {
                    link: function N6H(L6H, x6H, w6H) {
                        var n6H = Y5H(x6H[0]),
                            s6H = n6H.parent(),
                            i6H = s6H.parent().hasClass('mbsc-lv-ng-init'),
                            h6H = w6H.mobiscrollListviewHitem;
                        if (s6H.children('li').not('.mbsc-lv-back').length <= 1 && !i6H) {
                            s6H.parent().addClass('mbsc-lv-ng-init').parent().append(q6H(Y5H('<ul></ul>').append(g5H(W5H[h6H], 'item.children', h6H)))(L6H.$parent)[0]);
                        }
                        L6H.$on('$destroy', function() {
                            if (s6H) {
                                if (!s6H.children('li').length) {
                                    s6H = s6H.parent().parent().children('ul');
                                    s6H.remove();
                                }
                            }
                        });
                    }
                };
            }]).directive('mobiscrollListview', ['$compile', '$parse', '$timeout', function(K6H, O6H, S6H) {
                return {
                    restrict: 'A',
                    require: '?ngModel',
                    compile: function C6H(J6H) {
                        var j6H, Z6H = b5H++,
                            M6H = J6H.html().replace(/(mbsc-ng-)|(ms-ng-)/g, 'ng-').trim();
                        return function(G6H, d6H, P6H, f6H) {
                            var A6H, k6H, Y6H, V6H = Y5H(d6H[0]);
                            if (f6H || P6H.mobiscrollData) {
                                A6H = G6H.$eval(P6H.mobiscrollListview || '{}');
                                Y6H = P6H.mobiscrollData || P6H.ngModel;
                            } else {
                                A6H = G6H.$eval(P6H.mobiscrollOptions || '{}');
                                Y6H = P6H.mobiscrollListview;
                            }
                            var m6H = R5H(G6H.$eval(Y6H));
                            f5H[Z6H] = {
                                rootNode: V6H,
                                allNodes: m6H,
                                nodesLeft: m6H
                            };
                            W5H[Z6H] = M6H;
                            j6H = Y5H('<div></div>').append(g5H(M6H, Y6H, Z6H));
                            V6H.empty().append(Y5H(K6H(j6H)(G6H)[0]).contents());
                            G6H.$on('mbscLvLastItemAdded', function(b6H, W6H) {
                                if (V6H[0] == W6H[0]) {
                                    S6H(function() {
                                        k6H = new Z2K.classes.ListView(V6H[0], A6H);
                                        if (P6H.mobiscrollInstance) {
                                            O6H(P6H.mobiscrollInstance).assign(G6H, k6H);
                                        }
                                    });
                                }
                            });
                            G6H.$on('$destroy', function() {
                                if (k6H) {
                                    k6H.destroy();
                                    k6H = null;
                                }
                            });
                            if (m6H === 0) {
                                G6H.$emit('mbscLvLastItemAdded', V6H);
                            }
                        };
                    }
                };
            }]);
            if (A5H) {
                J2K.module('mobiscroll-listview').animation('.mbsc-lv-item', function() {
                    return {
                        leave: function g6H(e6H, F6H) {
                            var R6H = Y5H(e6H[0]),
                                Q6H = Z2K.instances[R6H.closest('.mbsc-lv-cont').find('.mbsc-lv-root')[0].id];
                            Q6H.remove(R6H, m5H, F6H);
                        }
                    };
                });
            }
        }());
        var l2K = Z2K.$;
        var d6K = {
            batch: 50,
            min: 0,
            max: 100,
            defaultUnit: '',
            units: null,
            unitNames: null,
            invalid: [],
            sign: false,
            step: 0.05,
            scale: 2,
            convert: function v6H(H6H) {
                return H6H;
            },
            signText: '&nbsp;',
            wholeText: 'Whole',
            fractionText: 'Fraction',
            unitText: 'Unit'
        };
        Z2K.presets.scroller.measurement = function(q1H) {
            function W1H(R1H) {
                return Math.max(r6H, Math.min(o6H, z6H ? R1H < 0 ? Math.ceil(R1H) : Math.floor(R1H) : P1H(Math.round(R1H - S1H), E6H) + S1H));
            }

            function J1H(Q1H) {
                return z6H ? P1H((Math.abs(Q1H) - Math.abs(W1H(Q1H))) * L1H - C1H, E6H) + C1H : 0;
            }

            function O1H(e1H) {
                var F1H = W1H(e1H),
                    v1H = J1H(e1H),
                    H1H = e1H < 0 ? '-' : '+';
                if (v1H >= L1H) {
                    if (e1H < 0) {
                        F1H--;
                    } else {
                        F1H++;
                    }
                    v1H = 0;
                }
                return [H1H, F1H, v1H];
            }

            function A1H(D1H) {
                var l1H = +D1H[T6H],
                    B1H = z6H ? D1H[U6H] / L1H * (l1H < 0 ? -1 : 1) : 0;
                return (B6H && D1H[0] == '-' ? -1 : 1) * (l1H + B1H);
            }

            function P1H(y1H, z1H) {
                return Math.round(y1H / z1H) * z1H;
            }

            function g1H(T1H, X1H) {
                T1H = T1H + '';
                while (T1H.length < X1H) {
                    T1H = '0' + T1H;
                }
                return T1H;
            }

            function h1H(r1H, a1H, p1H) {
                if (a1H === p1H || !D6H.convert) {
                    return r1H;
                }
                return D6H.convert.call(this, r1H, a1H, p1H);
            }

            function Y1H(t1H, I1H, E1H) {
                t1H = t1H > E1H ? E1H : t1H;
                t1H = t1H < I1H ? I1H : t1H;
                return t1H;
            }

            function V1H(U1H) {
                var u1H, o1H;
                I6H = h1H(D6H.min, c6H, U1H);
                t6H = h1H(D6H.max, c6H, U1H);
                if (z6H) {
                    r6H = I6H < 0 ? Math.ceil(I6H) : Math.floor(I6H);
                    o6H = t6H < 0 ? Math.ceil(t6H) : Math.floor(t6H);
                    k1H = J1H(I6H);
                    G1H = J1H(t6H);
                } else {
                    r6H = Math.round(I6H);
                    o6H = Math.round(t6H);
                    o6H = r6H + Math.floor((o6H - r6H) / E6H) * E6H;
                    S1H = r6H % E6H;
                }
                u1H = r6H;
                o1H = o6H;
                if (B6H) {
                    o1H = Math.abs(u1H) > Math.abs(o1H) ? Math.abs(u1H) : Math.abs(o1H);
                    u1H = u1H < 0 ? 0 : u1H;
                }
                s1H.min = u1H < 0 ? Math.ceil(u1H / X6H) : Math.floor(u1H / X6H);
                s1H.max = o1H < 0 ? Math.ceil(o1H / X6H) : Math.floor(o1H / X6H);
            }

            function f1H(c1H) {
                return A1H(c1H).toFixed(z6H ? M1H : 0) + (p6H ? ' ' + x1H[c1H[i1H]] : '');
            }
            var b1H = l2K.extend({}, q1H.settings),
                D6H = l2K.extend(q1H.settings, d6K, b1H),
                K1H = {},
                n1H = [
                    []
                ],
                u6H = {},
                s1H = {},
                w1H = {},
                j1H = [],
                B6H = D6H.sign,
                p6H = D6H.units && D6H.units.length,
                c6H = p6H ? D6H.defaultUnit || D6H.units[0] : '',
                x1H = [],
                z6H = D6H.step < 1,
                X6H = D6H.step > 1 ? D6H.step : 1,
                M1H = z6H ? Math.max(D6H.scale, (D6H.step + '').split('.')[1].length) : 1,
                L1H = Math.pow(10, M1H),
                E6H = Math.round(z6H ? D6H.step * L1H : D6H.step),
                d1H, y6H, N1H, m1H = -1,
                U6H, T6H, i1H, I6H, t6H, r6H, o6H, k1H, G1H, S1H = 0,
                C1H = 0,
                Z1H, l6H, a6H = 0;
            q1H.setVal = function(q8H, N8H, s8H, h8H, L8H) {
                q1H._setVal(l2K.isArray(q8H) ? f1H(q8H) : q8H, N8H, s8H, h8H, L8H);
            };
            if (D6H.units) {
                for (l6H = 0; l6H < D6H.units.length; ++l6H) {
                    Z1H = D6H.units[l6H];
                    x1H.push(D6H.unitNames ? D6H.unitNames[Z1H] || Z1H : Z1H);
                }
            }
            if (B6H) {
                B6H = false;
                if (p6H) {
                    for (l6H = 0; l6H < D6H.units.length; l6H++) {
                        if (h1H(D6H.min, c6H, D6H.units[l6H]) < 0) {
                            B6H = true;
                        }
                    }
                } else {
                    B6H = D6H.min < 0;
                }
            }
            if (B6H) {
                n1H[0].push({
                    data: ['-', '+'],
                    label: D6H.signText
                });
                m1H = a6H++;
            }
            s1H = {
                label: D6H.wholeText,
                data: function n8H(i8H) {
                    return r6H % X6H + i8H * X6H;
                },
                getIndex: function x8H(w8H) {
                    return Math.round((w8H - r6H % X6H) / X6H);
                }
            };
            n1H[0].push(s1H);
            T6H = a6H++;
            V1H(c6H);
            if (z6H) {
                n1H[0].push(w1H);
                w1H.data = [];
                w1H.label = D6H.fractionText;
                for (l6H = C1H; l6H < L1H; l6H += E6H) {
                    j1H.push(l6H);
                    w1H.data.push({
                        value: l6H,
                        display: '.' + g1H(l6H, M1H)
                    });
                }
                U6H = a6H++;
                d1H = Math.ceil(100 / E6H);
                if (D6H.invalid && D6H.invalid.length) {
                    l2K.each(D6H.invalid, function(S8H, O8H) {
                        var K8H = O8H > 0 ? Math.floor(O8H) : Math.ceil(O8H);
                        if (K8H === 0) {
                            K8H = O8H <= 0 ? -0.001 : 0.001;
                        }
                        u6H[K8H] = (u6H[K8H] || 0) + 1;
                        if (O8H === 0) {
                            K8H = 0.001;
                            u6H[K8H] = (u6H[K8H] || 0) + 1;
                        }
                    });
                    l2K.each(u6H, function(C8H, Z8H) {
                        if (Z8H < d1H) {
                            delete u6H[C8H];
                        } else {
                            u6H[C8H] = C8H;
                        }
                    });
                }
            }
            if (p6H) {
                K1H = {
                    data: [],
                    label: D6H.unitText,
                    cssClass: 'mbsc-msr-whl-unit',
                    circular: false
                };
                for (l6H = 0; l6H < D6H.units.length; l6H++) {
                    K1H.data.push({
                        value: l6H,
                        display: x1H[l6H]
                    });
                }
                n1H[0].push(K1H);
            }
            i1H = a6H;
            return {
                wheels: n1H,
                minWidth: B6H && z6H ? 70 : 80,
                showLabel: false,
                formatValue: f1H,
                compClass: 'mbsc-msr',
                parseValue: function M8H(V8H) {
                    var Y8H = (typeof V8H === 'number' ? V8H + '' : V8H) || D6H.defaultValue,
                        k8H = (Y8H + '').split(' '),
                        J8H = +k8H[0],
                        P8H = [],
                        G8H, j8H = '';
                    if (p6H) {
                        j8H = l2K.inArray(k8H[1], x1H);
                        j8H = j8H == -1 ? l2K.inArray(c6H, D6H.units) : j8H;
                        j8H = j8H == -1 ? 0 : j8H;
                    }
                    N1H = p6H ? D6H.units[j8H] : '';
                    V1H(N1H);
                    J8H = isNaN(J8H) ? 0 : J8H;
                    J8H = Y1H(J8H, I6H, t6H);
                    G8H = O1H(J8H);
                    G8H[1] = Y1H(G8H[1], r6H, o6H);
                    y6H = J8H;
                    if (B6H) {
                        P8H[0] = G8H[0];
                        G8H[1] = Math.abs(G8H[1]);
                    }
                    P8H[T6H] = G8H[1];
                    if (z6H) {
                        P8H[U6H] = G8H[2];
                    }
                    if (p6H) {
                        P8H[i1H] = j8H;
                    }
                    return P8H;
                },
                onCancel: function m8H() {
                    y6H = undefined;
                },
                validate: function A8H(v8H) {
                    var R8H, f8H, D8H, Q8H, F8H, d8H = v8H.values,
                        g8H = v8H.index,
                        B8H = v8H.direction,
                        e8H = {},
                        W8H = [],
                        H8H = {},
                        b8H = p6H ? D6H.units[d8H[i1H]] : '';
                    if (B6H && g8H === 0) {
                        y6H = Math.abs(y6H) * (d8H[0] == '-' ? -1 : 1);
                    }
                    if (g8H === T6H || g8H === U6H && z6H || y6H === undefined || g8H === undefined) {
                        y6H = A1H(d8H);
                        N1H = b8H;
                    }
                    if (p6H && g8H === i1H && N1H !== b8H || g8H === undefined) {
                        V1H(b8H);
                        y6H = h1H(y6H, N1H, b8H);
                        N1H = b8H;
                        f8H = O1H(y6H);
                        if (g8H !== undefined) {
                            H8H[T6H] = s1H;
                            q1H.changeWheel(H8H);
                        }
                        if (B6H) {
                            d8H[0] = f8H[0];
                        }
                    }
                    W8H[T6H] = [];
                    if (B6H) {
                        W8H[0] = [];
                        if (I6H > 0) {
                            W8H[0].push('-');
                            d8H[0] = '+';
                        }
                        if (t6H < 0) {
                            W8H[0].push('+');
                            d8H[0] = '-';
                        }
                        F8H = Math.abs(d8H[0] == '-' ? r6H : o6H);
                        for (a6H = F8H + X6H; a6H < F8H + 20 * X6H; a6H += X6H) {
                            W8H[T6H].push(a6H);
                            e8H[a6H] = true;
                        }
                    }
                    y6H = Y1H(y6H, I6H, t6H);
                    f8H = O1H(y6H);
                    D8H = B6H ? Math.abs(f8H[1]) : f8H[1];
                    R8H = B6H ? d8H[0] == '-' : y6H < 0;
                    d8H[T6H] = D8H;
                    if (R8H) {
                        f8H[0] = '-';
                    }
                    if (z6H) {
                        d8H[U6H] = f8H[2];
                    }
                    l2K.each(z6H ? u6H : D6H.invalid, function(X8H, T8H) {
                        if (B6H && R8H) {
                            if (T8H <= 0) {
                                T8H = Math.abs(T8H);
                            } else {
                                return;
                            }
                        }
                        T8H = P1H(h1H(T8H, c6H, b8H), z6H ? 1 : E6H);
                        e8H[T8H] = true;
                        W8H[T6H].push(T8H);
                    });
                    d8H[T6H] = q1H.getValidValue(T6H, D8H, B8H, e8H);
                    f8H[1] = d8H[T6H] * (B6H && R8H ? -1 : 1);
                    if (z6H) {
                        W8H[U6H] = [];
                        var l8H = B6H ? d8H[0] + d8H[1] : (y6H < 0 ? '-' : '+') + Math.abs(f8H[1]),
                            y8H = (I6H < 0 ? '-' : '+') + Math.abs(r6H),
                            z8H = (t6H < 0 ? '-' : '+') + Math.abs(o6H);
                        if (l8H === y8H) {
                            l2K(j1H).each(function(a8H, r8H) {
                                if (R8H ? r8H > k1H : r8H < k1H) {
                                    W8H[U6H].push(r8H);
                                }
                            });
                        }
                        if (l8H === z8H) {
                            l2K(j1H).each(function(t8H, p8H) {
                                if (R8H ? p8H < G1H : p8H > G1H) {
                                    W8H[U6H].push(p8H);
                                }
                            });
                        }
                        l2K.each(D6H.invalid, function(E8H, I8H) {
                            Q8H = O1H(h1H(I8H, c6H, b8H));
                            if ((f8H[0] === Q8H[0] || f8H[1] === 0 && Q8H[1] === 0 && Q8H[2] === 0) && f8H[1] === Q8H[1]) {
                                W8H[U6H].push(Q8H[2]);
                            }
                        });
                    }
                    return {
                        disabled: W8H,
                        valid: d8H
                    };
                }
            };
        };
        Z2K.presetShort('measurement');
        var b5K = Z2K.$;
        var g5K = Z2K.presets.scroller;
        var b6K = {
            min: 0,
            max: 100,
            defaultUnit: 'km',
            units: ['m', 'km', 'in', 'ft', 'yd', 'mi']
        };
        var R5K = {
            mm: 0.001,
            cm: 0.01,
            dm: 0.1,
            m: 1,
            dam: 10,
            hm: 100,
            km: 1000,
            'in': 0.0254,
            ft: 0.3048,
            yd: 0.9144,
            ch: 20.1168,
            fur: 201.168,
            mi: 1609.344,
            lea: 4828.032
        };
        Z2K.presetShort('distance');
        g5K.distance = function(u8H) {
            var o8H = b5K.extend({}, b6K, u8H.settings);
            b5K.extend(u8H.settings, o8H, {
                sign: false,
                convert: function U8H(c8H, q9H, N9H) {
                    return c8H * R5K[q9H] / R5K[N9H];
                }
            });
            return g5K.measurement.call(this, u8H);
        };
        var Q5K = Z2K.$;
        var e5K = Z2K.presets.scroller;
        var e6K = {
            min: 0,
            max: 100,
            defaultUnit: 'N',
            units: ['N', 'kp', 'lbf', 'pdl']
        };
        var F5K = {
            N: 1,
            kp: 9.80665,
            lbf: 4.448222,
            pdl: 0.138255
        };
        Z2K.presetShort('force');
        e5K.force = function(s9H) {
            var h9H = Q5K.extend({}, e6K, s9H.settings);
            Q5K.extend(s9H.settings, h9H, {
                sign: false,
                convert: function L9H(n9H, i9H, x9H) {
                    return n9H * F5K[i9H] / F5K[x9H];
                }
            });
            return e5K.measurement.call(this, s9H);
        };
        var v5K = Z2K.$;
        var H5K = Z2K.presets.scroller;
        var D6K = {
            min: 0,
            max: 1000,
            defaultUnit: 'kg',
            units: ['g', 'kg', 'oz', 'lb'],
            unitNames: {
                tlong: 't (long)',
                tshort: 't (short)'
            }
        };
        var D5K = {
            mg: 0.001,
            cg: 0.01,
            dg: 0.1,
            g: 1,
            dag: 10,
            hg: 100,
            kg: 1000,
            t: 1000000,
            drc: 1.7718452,
            oz: 28.3495,
            lb: 453.59237,
            st: 6350.29318,
            qtr: 12700.58636,
            cwt: 50802.34544,
            tlong: 1016046.9088,
            tshort: 907184.74
        };
        Z2K.presetShort('mass');
        H5K.mass = function(w9H) {
            var K9H = v5K.extend({}, D6K, w9H.settings);
            v5K.extend(w9H.settings, K9H, {
                sign: false,
                convert: function O9H(S9H, C9H, Z9H) {
                    return S9H * D5K[C9H] / D5K[Z9H];
                }
            });
            return H5K.measurement.call(this, w9H);
        };
        var l5K = Z2K.$;
        var B5K = Z2K.presets.scroller;
        var y6K = {
            min: 0,
            max: 100,
            defaultUnit: 'kph',
            units: ['kph', 'mph', 'mps', 'fps', 'knot'],
            unitNames: {
                kph: 'km/h',
                mph: 'mi/h',
                mps: 'm/s',
                fps: 'ft/s',
                knot: 'knot'
            }
        };
        var z5K = {
            kph: 1,
            mph: 1.60934,
            mps: 3.6,
            fps: 1.09728,
            knot: 1.852
        };
        Z2K.presetShort('speed');
        B5K.speed = function(M9H) {
            var j9H = l5K.extend({}, y6K, M9H.settings);
            l5K.extend(M9H.settings, j9H, {
                sign: false,
                convert: function J9H(G9H, P9H, V9H) {
                    return G9H * z5K[P9H] / z5K[V9H];
                }
            });
            return B5K.measurement.call(this, M9H);
        };
        var y5K = Z2K.$;
        var T5K = Z2K.presets.scroller;
        var a6K = {
            min: -20,
            max: 40,
            defaultUnit: 'c',
            units: ['c', 'k', 'f', 'r'],
            unitNames: {
                c: '°C',
                k: 'K',
                f: '°F',
                r: '°R'
            }
        };
        var p6K = {
            c2k: function k9H(Y9H) {
                return Y9H + 273.15;
            },
            c2f: function m9H(A9H) {
                return A9H * 9 / 5 + 32;
            },
            c2r: function d9H(f9H) {
                return (f9H + 273.15) * 9 / 5;
            },
            k2c: function W9H(b9H) {
                return b9H - 273.15;
            },
            k2f: function g9H(R9H) {
                return R9H * 9 / 5 - 459.67;
            },
            k2r: function Q9H(e9H) {
                return e9H * 9 / 5;
            },
            f2c: function F9H(v9H) {
                return (v9H - 32) * 5 / 9;
            },
            f2k: function H9H(D9H) {
                return (D9H + 459.67) * 5 / 9;
            },
            f2r: function l9H(B9H) {
                return B9H + 459.67;
            },
            r2c: function z9H(y9H) {
                return (y9H - 491.67) * 5 / 9;
            },
            r2k: function T9H(X9H) {
                return X9H * 5 / 9;
            },
            r2f: function r9H(a9H) {
                return a9H - 459.67;
            }
        };
        Z2K.presetShort('temperature');
        T5K.temperature = function(p9H) {
            var t9H = y5K.extend({}, a6K, p9H.settings);
            y5K.extend(p9H.settings, t9H, {
                sign: true,
                convert: function I9H(E9H, u9H, o9H) {
                    return p6K[u9H + '2' + o9H](E9H);
                }
            });
            return T5K.measurement.call(this, p9H);
        };
        J2K.module('mobiscroll-measurement', []).directive('mobiscrollMeasurement', ['$parse', function(U9H) {
            return Z2K.ng.getDDO(U9H, 'mobiscrollMeasurement', {
                preset: 'measurement'
            });
        }]).directive('mobiscrollTemperature', ['$parse', function(c9H) {
            return Z2K.ng.getDDO(c9H, 'mobiscrollTemperature', {
                preset: 'temperature'
            });
        }]).directive('mobiscrollSpeed', ['$parse', function(q7B) {
            return Z2K.ng.getDDO(q7B, 'mobiscrollSpeed', {
                preset: 'speed'
            });
        }]).directive('mobiscrollMass', ['$parse', function(N7B) {
            return Z2K.ng.getDDO(N7B, 'mobiscrollMass', {
                preset: 'mass'
            });
        }]).directive('mobiscrollForce', ['$parse', function(s7B) {
            return Z2K.ng.getDDO(s7B, 'mobiscrollForce', {
                preset: 'force'
            });
        }]).directive('mobiscrollDistance', ['$parse', function(h7B) {
            return Z2K.ng.getDDO(h7B, 'mobiscrollDistance', {
                preset: 'distance'
            });
        }]);
      (function(y7z, l7z, b7z) {
            var z7z = Z2K,
                R7z = z7z.$,
                T7z = R7z.extend,
                N7z = z7z.classes,
                f7z = 1;
            N7z.MenuStrip = function(Q7z, s7z) {
                function o7z(c8z, K8z) {
                    var H8z = q7z.itemWidth,
                        q8z = q7z.layout;
                    H7z.contWidth = c7z = K7z.width();
                    if (c8z && V7z === c7z || !c7z) {
                        return;
                    }
                    V7z = c7z;
                    if (z7z.util.isNumeric(q8z)) {
                        i7z = c7z ? c7z / q8z : H8z;
                        if (i7z < H8z) {
                            q8z = 'liquid';
                        }
                    }
                    if (H8z) {
                        if (q8z == 'liquid') {
                            i7z = c7z ? c7z / Math.min(Math.floor(c7z / H8z), w7z.children().length) : H8z;
                        } else if (q8z == 'fixed') {
                            i7z = H8z;
                        }
                    }
                    if (i7z) {
                        w7z.children().css('width', i7z + 'px');
                    }
                    if (q7z.display != 'inline') {
                        A7z.find('.mbsc-page').css('padding-' + q7z.display, Q7z.offsetHeight + 'px');
                    }
                    H7z.totalWidth = C7z = Q7z.offsetWidth;
                    T7z(P7z.settings, {
                        contSize: c7z,
                        maxSnapScroll: q7z.paging ? 1 : false,
                        maxScroll: 0,
                        minScroll: C7z > c7z ? c7z - C7z : 0,
                        snap: q7z.paging ? c7z : q7z.snap ? i7z || '.mbsc-ms-item' : false,
                        elastic: C7z > c7z ? i7z || c7z : false
                    });
                    P7z.refresh(K8z);
                }

                function e7z() {
                    w7z.find('.mbsc-ripple').remove();
                    w7z.children().each(function(l8z) {
                        var y8z, z8z = R7z(this),
                            T8z = M7z && z8z.attr('data-selected') == 'true',
                            b8z = z8z.attr('data-disabled') == 'true',
                            f8z = z8z.attr('data-icon'),
                            N8z = z8z.attr('data-ref');
                        if (!N8z) {
                            N8z = f7z++;
                        }
                        if (l8z === 0) {
                            X7z = z8z;
                        }
                        if (M7z && !x7z && T8z) {
                            a7z = z8z;
                        }
                        if (f8z) {
                            I7z = true;
                        }
                        if (z8z.text()) {
                            O7z = true;
                        }
                        y8z = 'mbsc-ms-item mbsc-btn-e ' + (q7z.itemClass || '') + (T8z ? t7z : '') + (b8z ? ' mbsc-btn-d ' + (q7z.disabledClass || '') : '') + (f8z ? ' mbsc-ms-ic mbsc-ic mbsc-ic-' + f8z : '');
                        z8z.attr('data-ref', N8z).attr('data-role', 'button').attr('aria-selected', T8z ? 'true' : 'false').attr('aria-disabled', b8z ? 'true' : 'false').removeClass(m7z[N8z]).addClass(y8z);
                        m7z[N8z] = y8z;
                    });
                    if (I7z) {
                        K7z.addClass('mbsc-ms-icons');
                    }
                    if (O7z) {
                        K7z.addClass('mbsc-ms-txt');
                    }
                }

                function E7z(R8z) {
                    if (typeof R8z !== 'object') {
                        R8z = w7z.children('[data-id="' + R8z + '"]');
                    }
                    return R7z(R8z);
                }

                function Z7z(W7z) {
                    W7z.removeClass(t7z).removeAttr('data-selected').removeAttr('aria-selected');
                }

                function L7z(D7z) {
                    D7z.addClass(t7z).attr('data-selected', 'true').attr('aria-selected', 'true');
                }

                function U7z(G7z, g7z) {
                    if (!G7z.length) {
                        return;
                    }
                    var h7z = G7z.offset().left,
                        n7z = G7z[0].offsetLeft,
                        j7z = G7z[0].offsetWidth,
                        S7z = K7z.offset().left;
                    a7z = G7z;
                    if (g7z === b7z) {
                        g7z = !x7z;
                    }
                    if (M7z && g7z) {
                        if (x7z) {
                            if (G7z.attr('data-selected')) {
                                Z7z(G7z);
                            } else {
                                L7z(G7z);
                            }
                        } else {
                            Z7z(R7z('.mbsc-ms-item-sel', w7z));
                            L7z(G7z);
                        }
                    }
                    if (d7z) {
                        n7z = C7z - n7z - j7z;
                    }
                    if (k7z == 'a') {
                        if (h7z < S7z) {
                            P7z.scroll(d7z ? n7z + j7z - c7z : -n7z, p7z, true);
                        } else if (h7z + j7z > S7z + c7z) {
                            P7z.scroll(d7z ? n7z : c7z - n7z - j7z, p7z, true);
                        }
                    } else {
                        P7z.scroll(c7z / 2 - n7z - j7z / 2, p7z, true);
                    }
                    if (g7z) {
                        F7z('onItemTap', {
                            target: G7z[0]
                        });
                    }
                }

                function Y7z(r7z) {
                    clearTimeout(B7z);
                    B7z = setTimeout(function() {
                        o7z(r7z.type !== 'load');
                    }, 200);
                }
                var a7z, K7z, A7z, X7z, v7z, u7z, c7z, I7z, O7z, i7z, x7z, V7z, B7z, d7z, M7z, t7z, P7z, k7z, q7z, C7z, J7z, F7z, m7z = {},
                    p7z = 1000,
                    H7z = this,
                    w7z = R7z(Q7z);
                N7z.Base.call(this, Q7z, s7z, true);
                H7z.navigate = function(w8z, a8z) {
                    U7z(E7z(w8z), a8z);
                };
                H7z.next = function(i8z) {
                    var F8z = a7z ? a7z.next() : X7z;
                    if (F8z.length) {
                        a7z = F8z;
                        U7z(a7z, i8z);
                    }
                };
                H7z.prev = function(x8z) {
                    var P8z = a7z ? a7z.prev() : X7z;
                    if (P8z.length) {
                        a7z = P8z;
                        U7z(a7z, x8z);
                    }
                };
                H7z.select = function(C8z) {
                    if (!x7z) {
                        Z7z(R7z('.mbsc-ms-item-sel', w7z));
                    }
                    L7z(E7z(C8z));
                };
                H7z.deselect = function(d8z) {
                    Z7z(E7z(d8z));
                };
                H7z.enable = function(E8z) {
                    E7z(E8z).removeClass('mbsc-btn-d').removeAttr('data-disabled').removeAttr('aria-disabled');
                };
                H7z.disable = function(A8z) {
                    E7z(A8z).addClass('mbsc-btn-d').attr('data-disabled', 'true').attr('aria-disabled', 'true');
                };
                H7z.refresh = H7z.position = function(t8z) {
                    e7z();
                    o7z(false, t8z);
                };
                H7z._init = function() {
                    A7z = R7z(q7z.context);
                    v7z = R7z(q7z.context == 'body' ? y7z : q7z.context);
					
					if (q7z.type == 'tabs') {
						q7z.select = q7z.select || 'single';
						q7z.variant = q7z.variant || 'b';
					} else if (g.type == 'options') {
						q7z.select = q7z.select || 'multiple';
						q7z.variant = q7z.variant || 'a';
					} else if (g.type == 'menu') {
						q7z.select = q7z.select || 'off';
						q7z.variant = q7z.variant || 'a';
					}
					if (q7z.itemWidth && q7z.snap === b7z) {
						q7z.snap = true;
					}
                    k7z = q7z.variant;
                    M7z = q7z.select != 'off';
                    x7z = q7z.select == 'multiple';
                    t7z = ' mbsc-ms-item-sel ' + (q7z.activeClass || '');
                    d7z = q7z.rtl;
				    u7z = 'mbsc-ms-c' + ' mbsc-ms-' + k7z + ' mbsc-ms-' + q7z.display + ' mbsc-' + q7z.theme + ' ' + (q7z.baseTheme ? ' mbsc-' + q7z.baseTheme : '') + ' ' + (q7z.cssClass || '') + ' ' + (q7z.wrapperClass || '') + (d7z ? ' mbsc-ms-rtl' : ' mbsc-ms-ltr') + (q7z.itemWidth ? ' mbsc-ms-hasw' : '') + (q7z.context == 'body' ? '' : ' mbsc-ms-ctx') + (M7z ? '' : ' mbsc-ms-nosel');                 
                    if (!K7z) {
                        K7z = R7z('<div class="' + u7z + '"><div class="mbsc-ms-sc"></div></div>').insertAfter(w7z);
                        K7z.find('.mbsc-ms-sc').append(w7z);
                        P7z = new z7z.classes.ScrollView(K7z[0], {
                            axis: 'X',
                            contSize: 0,
                            maxScroll: 0,
                            maxSnapScroll: 1,
                            minScroll: 0,
                            snap: 1,
                            elastic: 1,
                            rtl: d7z,
                            mousewheel: q7z.mousewheel,
                            onStart: function(U8z) {
                                if (!J7z && U8z.domEvent.type == 'touchstart') {
                                    J7z = true;
                                    A7z.find('.mbsc-no-touch').removeClass('mbsc-no-touch');
                                }
                            },
                            onBtnTap: function(Z8z) {
                                U7z(R7z(Z8z.target), true);
                            },
                            onGestureStart: function(M8z) {
                                F7z('onGestureStart', M8z);
                            },
                            onGestureEnd: function(Q8z) {
                                F7z('onGestureEnd', Q8z);
                            },
                            onMove: function(m8z) {
                                F7z('onMove', m8z);
                            },
                            onAnimationStart: function(p8z) {
                                F7z('onAnimationStart', p8z);
                            },
                            onAnimationEnd: function(Y8z) {
                                F7z('onAnimationEnd', Y8z);
                            }
                        });
                    } else {
                        K7z.attr('class', u7z);
                    }
                    w7z.css('display', '').addClass('mbsc-ms ' + (q7z.groupClass || ''));
                    e7z();
                    F7z('onMarkupReady', {
                        target: K7z[0]
                    });
                    o7z();
                    K7z.find('img').on('load', Y7z);
                    v7z.on('orientationchange resize', Y7z);
                };
                H7z._destroy = function() {
                    if (q7z.display != 'inline') {
                        A7z.find('.mbsc-page').css('padding-' + q7z.display, '');
                    }
                    v7z.off('orientationchange resize', Y7z);
                    w7z.removeClass('mbsc-ms mbsc-ms-a mbsc-ms-b').insertAfter(K7z).find('.mbsc-ms-item').each(function() {
                        var X8z = R7z(this);
                        X8z.width('').removeClass(m7z[X8z.attr('data-ref')]);
                    });
                    K7z.remove();
                    P7z.destroy();
                };
                q7z = H7z.settings;
                F7z = H7z.trigger;
                H7z.init(s7z);
            };
            N7z.MenuStrip.prototype = {
                _class: 'menustrip',
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _defaults: {
                    context: 'body',
                    type: 'options',
                    display: 'inline',
                    layout: 'liquid'
                }
            };
            z7z.presetShort('menustrip', 'MenuStrip');
        }(window, document));
		
		
        (function() {
            var B3B = Z2K.$,
                z3B = 'mobiscrollMenustrip',
                y3B = ['ng-repeat', 'ng:repeat', 'data-ng-repeat', 'x-ng-repeat', 'ng_repeat'];
            J2K.module('mobiscroll-menustrip', []).directive('mobiscrollRepeatRender', function() {
                return function(T3B) {
                    T3B.$emit('mbscRepeatRender');
                };
            }).directive(z3B, ['$parse', '$timeout', function(X3B, a3B) {
                var r3B = Z2K.ng.getDDO(X3B, z3B, {
                    component: 'MenuStrip'
                }, function() {}, function() {});
                r3B.compile = function(E3B) {
                    var t3B, p3B, I3B = B3B(E3B[0]);
                    I3B.find('li').each(function() {
                        for (p3B = 0; p3B < y3B.length; p3B++) {
                            if (B3B(this).attr(y3B[p3B])) {
                                t3B = true;
                                return false;
                            }
                        }
                    });
                    if (t3B) {
                        I3B.children().attr('mobiscroll-repeat-render', '');
                    }
                    return function(o3B, c3B, U3B) {
                        var u3B, N2B, s2B = B3B(c3B[0]),
                            q2B = o3B.$eval(U3B[z3B] || '{}');
                        if (t3B) {
                            o3B.$on('mbscRepeatRender', function() {
                                clearTimeout(N2B);
                                N2B = setTimeout(function() {
                                    u3B = new Z2K.classes.MenuStrip(c3B[0], q2B);
                                    if (U3B.mobiscrollInstance) {
                                        X3B(U3B.mobiscrollInstance).assign(o3B, u3B);
                                    }
                                }, 1);
                            });
                        } else if (s2B.children().length) {
                            a3B(function() {
                                u3B = new Z2K.classes.MenuStrip(c3B[0], q2B);
                                if (U3B.mobiscrollInstance) {
                                    X3B(U3B.mobiscrollInstance).assign(o3B, u3B);
                                }
                            });
                        }
                        o3B.$on('$destroy', function() {
                            if (u3B) {
                                u3B.destroy();
                                u3B = null;
                            }
                        });
                    };
                };
                return r3B;
            }]);
        }());
        Z2K.presets.scroller.number = Z2K.presets.scroller.measurement;
        Z2K.presetShort('number');
        J2K.module('mobiscroll-number', []).directive('mobiscrollNumber', ['$parse', function(h2B) {
            return Z2K.ng.getDDO(h2B, 'mobiscrollNumber', {
                preset: 'number'
            });
        }]);
        var V2K = Z2K.$;
        var W0K = Z2K.util;
        var C4K = Z2K.presets.numpad;
        var N1K = W0K.testTouch;
        var a0K = W0K.getCoord;
        var h1K = W0K.isNumeric;
        var p5K = function L2B() {};
        var t5K = function n2B(M2B, r2B, I2B) {
            function J2B(o2B) {
                var E2B, u2B = x2B.validate.call(M2B, {
                        values: w2B.slice(0),
                        variables: O2B
                    }, i2B) || [],
                    U2B = u2B && u2B.disabled || [];
                i2B._isValid = u2B.invalid ? false : true;
                i2B._tempValue = x2B.formatValue.call(M2B, w2B.slice(0), O2B, i2B);
                S2B = w2B.length;
                f2B = u2B.length || C2B;
                if (i2B._isVisible) {
                    V2K('.mbsc-np-ph', Z2B).each(function(c2B) {
                        V2K(this).html(x2B.fill == 'ltr' ? c2B >= S2B ? Y2B : G2B || w2B[c2B] : c2B >= C2B - f2B ? c2B + S2B < C2B ? Y2B : G2B || w2B[c2B + S2B - C2B] : '');
                    });
                    V2K('.mbsc-np-cph', Z2B).each(function() {
                        V2K(this).html(O2B[V2K(this).attr('data-var')] || V2K(this).attr('data-ph'));
                    });
                    if (S2B === C2B) {
                        for (E2B = 0; E2B <= 9; E2B++) {
                            U2B.push(E2B);
                        }
                    }
                    V2K('.mbsc-np-btn', Z2B).removeClass(P2B);
                    for (E2B = 0; E2B < U2B.length; E2B++) {
                        V2K('.mbsc-np-btn[data-val="' + U2B[E2B] + '"]', Z2B).addClass(P2B);
                    }
                    if (i2B._isValid) {
                        V2K('.mbsc-fr-btn-s .mbsc-fr-btn', Z2B).removeClass(P2B);
                    } else {
                        V2K('.mbsc-fr-btn-s .mbsc-fr-btn', Z2B).addClass(P2B);
                    }
                    if (i2B.live) {
                        i2B._hasValue = o2B || i2B._hasValue;
                        V2B(o2B, false, o2B);
                        if (o2B) {
                            W2B('onSet', {
                                valueText: i2B._value
                            });
                        }
                    }
                }
            }

            function V2B(N0B, s0B, q0B, h0B) {
                if (s0B) {
                    J2B();
                }
                if (!h0B) {
                    m2B = w2B.slice(0);
                    R2B = V2K.extend({}, O2B);
                    e2B = K2B.slice(0);
                    i2B._value = i2B._hasValue ? i2B._tempValue : null;
                }
                if (N0B) {
                    if (i2B._isInput) {
                        j2B.val(i2B._hasValue && i2B._isValid ? i2B._value : '');
                    }
                    W2B('onFill', {
                        valueText: i2B._hasValue ? i2B._tempValue : '',
                        change: q0B
                    });
                    if (q0B) {
                        i2B._preventChange = true;
                        j2B.trigger('change');
                    }
                }
            }

            function y2B(w0B) {
                var L0B, i0B, n0B = w0B || [],
                    x0B = [];
                K2B = [];
                O2B = {};
                for (L0B = 0; L0B < n0B.length; L0B++) {
                    if (/:/.test(n0B[L0B])) {
                        i0B = n0B[L0B].split(':');
                        O2B[i0B[0]] = i0B[1];
                        K2B.push(i0B[0]);
                    } else {
                        x0B.push(n0B[L0B]);
                        K2B.push('digit');
                    }
                }
                return x0B;
            }

            function F2B(K0B, O0B) {
                if (!S2B && !O0B && !x2B.allowLeadingZero || K0B.hasClass('mbsc-fr-btn-d') || K0B.hasClass('mbsc-np-btn-empty')) {
                    return;
                }
                if (S2B < C2B) {
                    K2B.push('digit');
                    w2B.push(O0B);
                    J2B(true);
                }
            }

            function X2B(M0B) {
                var C0B, S0B, Z0B = M0B.attr('data-val'),
                    J0B = M0B.attr('data-track') !== 'false',
                    j0B = M0B.attr('data-var');
                if (!M0B.hasClass('mbsc-fr-btn-d')) {
                    if (j0B) {
                        S0B = j0B.split(':');
                        if (J0B) {
                            K2B.push(S0B[0]);
                        }
                        O2B[S0B[0]] = S0B[2] === undefined ? S0B[1] : O2B[S0B[0]] == S0B[1] ? S0B[2] : S0B[1];
                    }
                    if (Z0B.length + S2B <= f2B) {
                        for (C0B = 0; C0B < Z0B.length; ++C0B) {
                            S0B = h1K(Z0B[C0B]) ? +Z0B[C0B] : Z0B[C0B];
                            if (x2B.allowLeadingZero || S2B || S0B) {
                                K2B.push('digit');
                                w2B.push(S0B);
                                S2B = w2B.length;
                            }
                        }
                    }
                    J2B(true);
                }
            }

            function g2B() {
                var P0B, V0B, G0B = K2B.pop();
                if (S2B || G0B !== 'digit') {
                    if (G0B !== 'digit' && O2B[G0B]) {
                        delete O2B[G0B];
                        V0B = K2B.slice(0);
                        K2B = [];
                        for (P0B = 0; P0B < V0B.length; P0B++) {
                            if (V0B[P0B] !== G0B) {
                                K2B.push(V0B[P0B]);
                            }
                        }
                    } else {
                        w2B.pop();
                    }
                    J2B(true);
                }
            }

            function p2B(k0B) {
                A2B = true;
                z2B = a0K(k0B, 'X');
                B2B = a0K(k0B, 'Y');
                clearInterval(d2B);
                clearTimeout(d2B);
                g2B();
                d2B = setInterval(function() {
                    g2B();
                }, 150);
            }

            function a2B() {
                clearInterval(d2B);
                A2B = false;
            }

            function t2B(Y0B) {
                if (N1K(Y0B, this)) {
                    p2B(Y0B);
                    if (Y0B.type === 'mousedown') {
                        V2K(document).on('mousemove', b2B).on('mouseup', Q2B);
                    }
                }
            }

            function b2B(m0B) {
                if (A2B) {
                    l2B = a0K(m0B, 'X');
                    H2B = a0K(m0B, 'Y');
                    T2B = l2B - z2B;
                    v2B = H2B - B2B;
                    if (Math.abs(T2B) > 7 || Math.abs(v2B) > 7) {
                        a2B();
                    }
                }
            }

            function Q2B(A0B) {
                if (A2B) {
                    A0B.preventDefault();
                    a2B();
                    if (A0B.type === 'mouseup') {
                        V2K(document).off('mousemove', b2B).off('mouseup', Q2B);
                    }
                }
            }
            var Z2B, P2B, Y2B, S2B, x2B, G2B, z2B, B2B, l2B, H2B, T2B, v2B, A2B, d2B, w2B, f2B, W2B, C2B, m2B, j2B = V2K(M2B),
                i2B = this,
                e2B = [],
                K2B = [],
                O2B = {},
                R2B = {},
                D2B = {
                    107: '+',
                    109: '-'
                },
                k2B = {
                    48: 0,
                    49: 1,
                    50: 2,
                    51: 3,
                    52: 4,
                    53: 5,
                    54: 6,
                    55: 7,
                    56: 8,
                    57: 9,
                    96: 0,
                    97: 1,
                    98: 2,
                    99: 3,
                    100: 4,
                    101: 5,
                    102: 6,
                    103: 7,
                    104: 8,
                    105: 9
                };
            p2K.call(this, M2B, r2B, true);
            i2B.setVal = i2B._setVal = function(d0B, f0B, W0B, b0B) {
                i2B._hasValue = d0B !== null && d0B !== undefined;
                w2B = y2B(V2K.isArray(d0B) ? d0B.slice(0) : x2B.parseValue.call(M2B, d0B, i2B));
                V2B(f0B, true, W0B === undefined ? f0B : W0B, b0B);
            };
            i2B.getVal = i2B._getVal = function(g0B) {
                return i2B._hasValue || g0B ? i2B[g0B ? '_tempValue' : '_value'] : null;
            };
            i2B.setArrayVal = i2B.setVal;
            i2B.getArrayVal = function(R0B) {
                return R0B ? w2B.slice(0) : i2B._hasValue ? m2B.slice(0) : null;
            };
            i2B._readValue = function() {
                var Q0B = j2B.val() || '';
                if (Q0B !== '') {
                    i2B._hasValue = true;
                }
                if (G2B) {
                    O2B = {};
                    K2B = [];
                    w2B = [];
                } else {
                    O2B = i2B._hasValue ? R2B : {};
                    K2B = i2B._hasValue ? e2B : [];
                    w2B = i2B._hasValue && m2B ? m2B.slice(0) : y2B(x2B.parseValue.call(M2B, Q0B, i2B));
                    V2B(false, true);
                }
            };
            i2B._fillValue = function() {
                i2B._hasValue = true;
                V2B(true, false, true);
            };
            i2B._generateContent = function() {
                var D0B, l0B, v0B, F0B = 1,
                    H0B = '',
                    e0B = '';
                e0B += '<div class="mbsc-np-hdr"><div role="button" tabindex="0" aria-label="' + x2B.deleteText + '" class="mbsc-np-del mbsc-fr-btn-e mbsc-ic mbsc-ic-' + x2B.deleteIcon + '"></div><div class="mbsc-np-dsp">';
                H0B = x2B.template.replace(/d/g, '<span class="mbsc-np-ph">' + Y2B + '</span>').replace(/&#100;/g, 'd');
                H0B = H0B.replace(/{([a-zA-Z0-9]*)\:?([a-zA-Z0-9\-\_]*)}/g, '<span class="mbsc-np-cph" data-var="$1" data-ph="$2">$2</span>');
                e0B += H0B;
                e0B += '</div></div>';
                e0B += '<div class="mbsc-np-tbl-c mbsc-w-p"><div class="mbsc-np-tbl">';
                for (D0B = 0; D0B < 4; D0B++) {
                    e0B += '<div class="mbsc-np-row">';
                    for (l0B = 0; l0B < 3; l0B++) {
                        v0B = F0B;
                        if (F0B == 10 || F0B == 12) {
                            v0B = '';
                        } else if (F0B == 11) {
                            v0B = 0;
                        }
                        if (v0B === '') {
                            if (F0B == 10 && x2B.leftKey) {
                                e0B += '<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom mbsc-fr-btn-e" ' + (x2B.leftKey.variable ? 'data-var="' + x2B.leftKey.variable + '"' : '') + ' data-val="' + (x2B.leftKey.value || '') + '" ' + (x2B.leftKey.track !== undefined ? ' data-track="' + x2B.leftKey.track + '"' : '') + '>' + x2B.leftKey.text + '</div>';
                            } else if (F0B == 12 && x2B.rightKey) {
                                e0B += '<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom mbsc-fr-btn-e" ' + (x2B.rightKey.variable ? 'data-var="' + x2B.rightKey.variable + '"' : '') + ' data-val="' + (x2B.rightKey.value || '') + '" ' + (x2B.rightKey.track !== undefined ? ' data-track="' + x2B.rightKey.track + '"' : '') + ' >' + x2B.rightKey.text + '</div>';
                            } else {
                                e0B += '<div class="mbsc-np-btn mbsc-np-btn-empty"></div>';
                            }
                        } else {
                            e0B += '<div tabindex="0" role="button" class="mbsc-np-btn mbsc-fr-btn-e" data-val="' + v0B + '">' + v0B + '</div>';
                        }
                        F0B++;
                    }
                    e0B += '</div>';
                }
                e0B += '</div></div>';
                return e0B;
            };
            i2B._markupReady = function() {
                Z2B = i2B._markup;
                J2B();
            };
            i2B._attachEvents = function(B0B) {
                B0B.on('keydown', function(z0B) {
                    var y0B;
                    if (D2B[z0B.keyCode] !== undefined) {
                        y0B = V2K('.mbsc-np-btn[data-var="sign:-:"]', B0B);
                        if (y0B.length) {
                            O2B.sign = z0B.keyCode == 107 ? '-' : '';
                            X2B(y0B);
                        }
                    } else if (k2B[z0B.keyCode] !== undefined) {
                        F2B(V2K('.mbsc-np-btn[data-val="' + k2B[z0B.keyCode] + '"]', B0B), k2B[z0B.keyCode]);
                    } else if (z0B.keyCode == 8) {
                        z0B.preventDefault();
                        g2B();
                    }
                });
                i2B.tap(V2K('.mbsc-np-btn', B0B), function() {
                    var T0B = V2K(this);
                    if (T0B.hasClass('mbsc-np-btn-custom')) {
                        X2B(T0B);
                    } else {
                        F2B(T0B, +T0B.attr('data-val'));
                    }
                }, false, 30, true);
                V2K('.mbsc-np-del', B0B).on('touchstart mousedown keydown', t2B).on('touchmove mousemove', b2B).on('keyup mouseup touchend', Q2B);
            };
            i2B.__init = function() {
                x2B = i2B.settings;
                x2B.cssClass = (x2B.cssClass || '') + ' mbsc-np';
                x2B.template = x2B.template.replace(/\\d/, '&#100;');
                Y2B = x2B.placeholder;
                C2B = (x2B.template.match(/d/g) || []).length;
                P2B = 'mbsc-fr-btn-d ' + (x2B.disabledClass || '');
                G2B = x2B.mask;
                W2B = i2B.trigger;
                if (G2B && j2B.is('input')) {
                    j2B.attr('type', 'password');
                }
            };
            i2B._indexOf = function(r0B, a0B) {
                var X0B;
                for (X0B = 0; X0B < r0B.length; ++X0B) {
                    if (r0B[X0B].toString() === a0B.toString()) {
                        return X0B;
                    }
                }
                return -1;
            };
            if (!I2B) {
                i2B.init(r2B);
            }
        };
        t5K.prototype = {
            _hasDef: true,
            _hasTheme: true,
            _hasLang: true,
            _hasPreset: true,
            _class: 'numpad',
            _defaults: V2K.extend({}, p2K.prototype._defaults, {
                template: 'dd.dd',
                placeholder: '0',
                deleteIcon: 'backspace',
                allowLeadingZero: false,
                headerText: false,
                fill: 'rtl',
                deleteText: 'Delete',
                decimalSeparator: '.',
                thousandsSeparator: ',',
                validate: p5K,
                parseValue: p5K,
                formatValue: function p0B(N4B, h4B, s4B) {
                    var I0B, u0B = 1,
                        c0B = s4B.settings,
                        q4B = c0B.placeholder,
                        o0B = c0B.template,
                        U0B = N4B.length,
                        E0B = o0B.length,
                        t0B = '';
                    for (I0B = 0; I0B < E0B; I0B++) {
                        if (o0B[E0B - I0B - 1] == 'd') {
                            if (u0B <= U0B) {
                                t0B = N4B[U0B - u0B] + t0B;
                            } else {
                                t0B = q4B + t0B;
                            }
                            u0B++;
                        } else {
                            t0B = o0B[E0B - I0B - 1] + t0B;
                        }
                    }
                    V2K.each(h4B, function(L4B, n4B) {
                        t0B = t0B.replace('{' + L4B + '}', n4B);
                    });
                    return V2K('<div>' + t0B + '</div>').text();
                }
            })
        };
        Z2K.classes.Numpad = t5K;
        Z2K.themes.numpad = Z2K.themes.frame;
        Z2K.presetShort('numpad', 'Numpad', false);
        var i1K = {
            min: 0,
            max: 99.99,
            scale: 2,
            prefix: '',
            suffix: '',
            returnAffix: false
        };
        C4K.decimal = function(x4B) {
            function w4B(j4B, J4B) {
                var Z4B, M4B = j4B.slice(0),
                    C4B = 0;
                while (M4B.length) {
                    C4B = C4B * 10 + M4B.shift();
                }
                for (Z4B = 0; Z4B < i4B.scale; Z4B++) {
                    C4B /= 10;
                }
                return J4B ? C4B * -1 : C4B;
            }

            function O4B(P4B) {
                var G4B = w4B(P4B).toFixed(i4B.scale).replace('.', i4B.decimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g, i4B.thousandsSeparator);
                return G4B;
            }
            var S4B = V2K.extend({}, x4B.settings),
                i4B = V2K.extend(x4B.settings, i1K, S4B),
                K4B = i4B.min < 0;
            x4B.getVal = function(Y4B) {
                var V4B = x4B._getVal(Y4B),
                    k4B = (V4B + '').replace(i4B.decimalSeparator, '.').replace(i4B.thousandsSeparator, '');
                return W0K.isNumeric(k4B) ? +k4B : V4B;
            };
            return {
                template: (K4B ? '{sign}' : '') + i4B.prefix.replace(/d/g, '\\d') + Array((Math.floor(Math.max(i4B.max, Math.abs(i4B.min))) + '').length + 1).join('d') + (i4B.scale ? '.' + Array(i4B.scale + 1).join('d') : '') + i4B.suffix.replace(/d/g, '\\d'),
                leftKey: K4B ? {
                    text: '-/+',
                    variable: 'sign:-:',
                    track: false
                } : undefined,
                parseValue: function m4B(b4B) {
                    var d4B, A4B, W4B = b4B || i4B.defaultValue,
                        f4B = [];
                    if (W4B) {
                        W4B = (W4B + '').replace(i4B.decimalSeparator, '.').replace(i4B.thousandsSeparator, '');
                        A4B = W4B.match(/\d+\.?\d*/g);
                        if (A4B) {
                            A4B = (+A4B[0]).toFixed(i4B.scale);
                            for (d4B = 0; d4B < A4B.length; d4B++) {
                                if (A4B[d4B] != '.') {
                                    if (+A4B[d4B]) {
                                        f4B.push(+A4B[d4B]);
                                    } else if (f4B.length) {
                                        f4B.push(0);
                                    }
                                }
                            }
                        }
                    }
                    if (b4B < 0) {
                        f4B.push('sign:' + '-');
                    }
                    return f4B;
                },
                formatValue: function g4B(Q4B, e4B) {
                    var R4B = O4B(Q4B),
                        F4B = w4B(Q4B, e4B && e4B.sign == '-');
                    return (F4B < 0 ? '-' : '') + (i4B.returnAffix ? i4B.prefix + R4B + i4B.suffix : R4B);
                },
                validate: function v4B(H4B) {
                    var D4B = H4B.values,
                        z4B = O4B(D4B),
                        l4B = w4B(D4B, H4B.variables && H4B.variables.sign == '-'),
                        B4B = [];
                    if (!D4B.length && !i4B.allowLeadingZero) {
                        B4B.push(0);
                    }
                    if (x4B.isVisible()) {
                        V2K('.mbsc-np-dsp', x4B._markup).html((H4B.variables.sign || '') + i4B.prefix + z4B + i4B.suffix);
                    }
                    return {
                        disabled: B4B,
                        invalid: l4B > i4B.max || l4B < i4B.min || (i4B.invalid ? x4B._indexOf(i4B.invalid, l4B) != -1 : false)
                    };
                }
            };
        };
        var E5K = ['h', 'm', 's'];
        var K1K = {
            min: 0,
            max: 362439,
            defaultValue: 0,
            hourTextShort: 'h',
            minuteTextShort: 'm',
            secTextShort: 's'
        };
        C4K.timespan = function(p4B) {
            function E4B(q5B) {
                var U4B, o4B = '',
                    c4B = 60 * 60;
                V2K(E5K).each(function(s5B, N5B) {
                    U4B = Math.floor(q5B / c4B);
                    q5B -= U4B * c4B;
                    c4B /= 60;
                    if (U4B > 0 || N5B == 's' && !o4B) {
                        o4B = o4B + (o4B ? ' ' : '') + U4B + I4B[N5B];
                    }
                });
                return o4B;
            }
            var u4B = V2K.extend({}, p4B.settings),
                a4B = V2K.extend(p4B.settings, K1K, u4B),
                I4B = {
                    h: a4B.hourTextShort.replace(/d/g, '\\d'),
                    m: a4B.minuteTextShort.replace(/d/g, '\\d'),
                    s: a4B.secTextShort.replace(/d/g, '\\d')
                },
                t4B = 'd<span class="mbsc-np-sup mbsc-np-time">' + I4B.s + '</span>';
            if (a4B.max > 9) {
                t4B = 'd' + t4B;
            }
            if (a4B.max > 99) {
                t4B = '<span class="mbsc-np-ts-m">' + (a4B.max > 639 ? 'd' : '') + 'd</span><span class="mbsc-np-sup mbsc-np-time">' + I4B.m + '</span>' + t4B;
            }
            if (a4B.max > 6039) {
                t4B = '<span class="mbsc-np-ts-h">' + (a4B.max > 38439 ? 'd' : '') + 'd</span><span class="mbsc-np-sup mbsc-np-time">' + I4B.h + '</span>' + t4B;
            }
            p4B.setVal = function(h5B, L5B, n5B, i5B) {
                if (W0K.isNumeric(h5B)) {
                    h5B = E4B(h5B);
                }
                return p4B._setVal(h5B, L5B, n5B, i5B);
            };
            p4B.getVal = function(x5B) {
                return p4B._hasValue || x5B ? I5K(p4B.getArrayVal(x5B)) : null;
            };
            return {
                template: t4B,
                parseValue: function w5B(C5B) {
                    var O5B, S5B = C5B || E4B(a4B.defaultValue),
                        K5B = [];
                    if (S5B) {
                        V2K(E5K).each(function(M5B, Z5B) {
                            O5B = new RegExp('(\\d+)' + I4B[Z5B], 'gi').exec(S5B);
                            if (O5B) {
                                O5B = +O5B[1];
                                if (O5B > 9) {
                                    K5B.push(Math.floor(O5B / 10));
                                    K5B.push(O5B % 10);
                                } else {
                                    if (K5B.length) {
                                        K5B.push(0);
                                    }
                                    if (O5B || K5B.length) {
                                        K5B.push(O5B);
                                    }
                                }
                            } else if (K5B.length) {
                                K5B.push(0);
                                K5B.push(0);
                            }
                        });
                    }
                    return K5B;
                },
                formatValue: function j5B(J5B) {
                    return E4B(I5K(J5B));
                },
                validate: function G5B(Y5B) {
                    var V5B = Y5B.values,
                        P5B = I5K(V5B.slice(0)),
                        k5B = [];
                    if (!V5B.length) {
                        k5B.push(0);
                    }
                    return {
                        disabled: k5B,
                        invalid: P5B > a4B.max || P5B < a4B.min || (a4B.invalid ? p4B._indexOf(a4B.invalid, +P5B) != -1 : false)
                    };
                }
            };
        };
        var O1K = {
            timeFormat: 'hh:ii A',
            amText: 'am',
            pmText: 'pm'
        };
        C4K.time = function(H5B) {
            function l5B(y5B, X5B) {
                var z5B, T5B = '';
                for (z5B = 0; z5B < y5B.length; ++z5B) {
                    T5B += y5B[z5B] + (z5B % 2 == (y5B.length % 2 == 1 ? 0 : 1) && z5B != y5B.length - 1 ? ':' : '');
                }
                V2K.each(X5B, function(a5B, r5B) {
                    T5B += ' ' + r5B;
                });
                return T5B;
            }

            function B5B(t5B) {
                var p5B, u5B, E5B, q6B, N6B, L6B, o5B, U5B, s6B, h6B, I5B = [],
                    c5B = 2 * R5B.length;
                v5B = c5B;
                if (!t5B.length) {
                    if (A5B) {
                        I5B.push(0);
                        I5B.push(m5B.leftKey.value);
                    }
                    I5B.push(m5B.rightKey.value);
                }
                if (!A5B && (c5B - t5B.length < 2 || t5B[0] != 1 && (t5B[0] > 2 || t5B[1] > 3) && c5B - t5B.length <= 2)) {
                    I5B.push('30');
                    I5B.push('00');
                }
                if ((A5B ? t5B[0] > 1 || t5B[1] > 2 : t5B[0] != 1 && (t5B[0] > 2 || t5B[1] > 3)) && t5B[0]) {
                    t5B.unshift(0);
                    v5B = c5B - 1;
                }
                if (t5B.length == c5B) {
                    for (p5B = 0; p5B <= 9; ++p5B) {
                        I5B.push(p5B);
                    }
                } else if (t5B.length == 1 && A5B && t5B[0] == 1 || t5B.length && t5B.length % 2 === 0 || !A5B && t5B[0] == 2 && t5B[1] > 3 && t5B.length % 2 == 1) {
                    for (p5B = 6; p5B <= 9; ++p5B) {
                        I5B.push(p5B);
                    }
                }
                s6B = t5B[1] !== undefined ? '' + t5B[0] + t5B[1] : '';
                h6B = +W5B == +(t5B[3] !== undefined ? '' + t5B[2] + t5B[3] : '');
                if (m5B.invalid) {
                    for (p5B = 0; p5B < m5B.invalid.length; ++p5B) {
                        L6B = m5B.invalid[p5B].getHours();
                        o5B = m5B.invalid[p5B].getMinutes();
                        U5B = m5B.invalid[p5B].getSeconds();
                        if (L6B == +s6B) {
                            if (R5B.length == 2 && (o5B < 10 ? 0 : +('' + o5B)[0]) == +t5B[2]) {
                                I5B.push(o5B < 10 ? o5B : +('' + o5B)[1]);
                                break;
                            } else if ((U5B < 10 ? 0 : +('' + U5B)[0]) == +t5B[4]) {
                                I5B.push(U5B < 10 ? U5B : +('' + U5B)[1]);
                                break;
                            }
                        }
                    }
                }
                if (m5B.min || m5B.max) {
                    u5B = +d5B == +s6B;
                    E5B = +f5B == +s6B;
                    N6B = E5B && h6B;
                    q6B = u5B && h6B;
                    if (t5B.length === 0) {
                        for (p5B = A5B ? 2 : d5B > 19 ? d5B[0] : 3; p5B <= (d5B[0] == 1 ? 9 : d5B[0] - 1); ++p5B) {
                            I5B.push(p5B);
                        }
                        if (d5B >= 10) {
                            I5B.push(0);
                            if (d5B[0] == 2) {
                                for (p5B = 3; p5B <= 9; ++p5B) {
                                    I5B.push(p5B);
                                }
                            }
                        }
                        if (f5B && f5B < 10 || d5B && d5B >= 10) {
                            for (p5B = f5B && f5B < 10 ? +f5B[0] + 1 : 0; p5B < (d5B && d5B >= 10 ? d5B[0] : 10); ++p5B) {
                                I5B.push(p5B);
                            }
                        }
                    }
                    if (t5B.length == 1) {
                        if (t5B[0] === 0) {
                            for (p5B = 0; p5B < d5B[0]; ++p5B) {
                                I5B.push(p5B);
                            }
                        }
                        if (d5B && t5B[0] !== 0 && (A5B ? t5B[0] == 1 : t5B[0] == 2)) {
                            for (p5B = A5B ? 3 : 4; p5B <= 9; ++p5B) {
                                I5B.push(p5B);
                            }
                        }
                        if (t5B[0] == d5B[0]) {
                            for (p5B = 0; p5B < d5B[1]; ++p5B) {
                                I5B.push(p5B);
                            }
                        }
                        if (t5B[0] == f5B[0] && !A5B) {
                            for (p5B = +f5B[1] + 1; p5B <= 9; ++p5B) {
                                I5B.push(p5B);
                            }
                        }
                    }
                    if (t5B.length == 2 && (u5B || E5B)) {
                        for (p5B = E5B ? +W5B[0] + 1 : 0; p5B < (u5B ? +Q5B[0] : 10); ++p5B) {
                            I5B.push(p5B);
                        }
                    }
                    if (t5B.length == 3 && (E5B && t5B[2] == W5B[0] || u5B && t5B[2] == Q5B[0])) {
                        for (p5B = E5B && t5B[2] == W5B[0] ? +W5B[1] + 1 : 0; p5B < (u5B && t5B[2] == Q5B[0] ? +Q5B[1] : 10); ++p5B) {
                            I5B.push(p5B);
                        }
                    }
                    if (t5B.length == 4 && (q6B || N6B)) {
                        for (p5B = N6B ? +b5B[0] + 1 : 0; p5B < (q6B ? +g5B[0] : 10); ++p5B) {
                            I5B.push(p5B);
                        }
                    }
                    if (t5B.length == 5 && (q6B && t5B[4] == g5B[0] || N6B && t5B[4] == b5B[0])) {
                        for (p5B = N6B && t5B[4] == b5B[0] ? +b5B[1] + 1 : 0; p5B < (q6B && t5B[4] == g5B[0] ? +g5B[1] : 10); ++p5B) {
                            I5B.push(p5B);
                        }
                    }
                }
                return I5B;
            }
            var D5B = V2K.extend({}, H5B.settings),
                m5B = V2K.extend(H5B.settings, O1K, D5B),
                R5B = m5B.timeFormat.split(':'),
                A5B = m5B.timeFormat.match(/a/i),
                F5B = A5B ? A5B[0] == 'a' ? m5B.amText : m5B.amText.toUpperCase() : '',
                e5B = A5B ? A5B[0] == 'a' ? m5B.pmText : m5B.pmText.toUpperCase() : '',
                v5B = 0,
                d5B = m5B.min ? '' + m5B.min.getHours() : '',
                f5B = m5B.max ? '' + m5B.max.getHours() : '',
                Q5B = m5B.min ? '' + (m5B.min.getMinutes() < 10 ? '0' + m5B.min.getMinutes() : m5B.min.getMinutes()) : '',
                W5B = m5B.max ? '' + (m5B.max.getMinutes() < 10 ? '0' + m5B.max.getMinutes() : m5B.max.getMinutes()) : '',
                g5B = m5B.min ? '' + (m5B.min.getSeconds() < 10 ? '0' + m5B.min.getSeconds() : m5B.min.getSeconds()) : '',
                b5B = m5B.max ? '' + (m5B.max.getSeconds() < 10 ? '0' + m5B.max.getSeconds() : m5B.max.getSeconds()) : '';
            m5B.min ? m5B.min.setFullYear(2014, 7, 20) : '';
            m5B.max ? m5B.max.setFullYear(2014, 7, 20) : '';
            return {
                placeholder: '-',
                allowLeadingZero: true,
                template: (R5B.length == 3 ? 'dd:dd:dd' : R5B.length == 2 ? 'dd:dd' : 'dd') + (A5B ? '<span class="mbsc-np-sup">{ampm:--}</span>' : ''),
                leftKey: A5B ? {
                    text: F5B,
                    variable: 'ampm:' + F5B,
                    value: '00'
                } : {
                    text: ':00',
                    value: '00'
                },
                rightKey: A5B ? {
                    text: e5B,
                    variable: 'ampm:' + e5B,
                    value: '00'
                } : {
                    text: ':30',
                    value: '30'
                },
                parseValue: function n6B(O6B) {
                    var x6B, w6B, i6B = O6B || m5B.defaultValue,
                        K6B = [];
                    if (i6B) {
                        i6B = i6B + '';
                        w6B = i6B.match(/\d/g);
                        if (w6B) {
                            for (x6B = 0; x6B < w6B.length; x6B++) {
                                K6B.push(+w6B[x6B]);
                            }
                        }
                        if (A5B) {
                            K6B.push('ampm:' + (i6B.match(new RegExp(m5B.pmText, 'gi')) ? e5B : F5B));
                        }
                    }
                    return K6B;
                },
                formatValue: function S6B(C6B, Z6B) {
                    return l5B(C6B, Z6B);
                },
                validate: function M6B(P6B) {
                    var j6B = P6B.values,
                        V6B = P6B.variables,
                        G6B = l5B(j6B, V6B),
                        J6B = j6B.length >= 3 ? new Date(2014, 7, 20, '' + j6B[0] + (j6B.length % 2 === 0 ? j6B[1] : ''), '' + j6B[j6B.length % 2 === 0 ? 2 : 1] + j6B[j6B.length % 2 === 0 ? 3 : 2]) : '';
                    return {
                        disabled: B5B(j6B),
                        length: v5B,
                        invalid: (A5B ? !new RegExp('^(0?[1-9]|1[012])(:[0-5]\\d)?(:[0-5][0-9])' + ' (?:' + m5B.amText + '|' + m5B.pmText + ')$', 'i').test(G6B) : !/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(G6B)) || (m5B.invalid ? H5B._indexOf(m5B.invalid, J6B) != -1 : false) || !((m5B.min ? m5B.min <= J6B : true) && (m5B.max ? J6B <= m5B.max : true))
                    };
                }
            };
        };
        var S1K = {
            dateOrder: 'mdy',
            dateFormat: 'mm/dd/yy',
            delimiter: '/'
        };
        C4K.date = function(v6B) {
            function l6B(r6B) {
                return r6B % 4 === 0 && r6B % 100 !== 0 || r6B % 400 === 0;
            }

            function B6B(p6B) {
                var a6B, I6B, N1B, o6B, U6B, t6B = [],
                    E6B = p6B[Y6B + 3] !== undefined ? '' + p6B[Y6B] + p6B[Y6B + 1] + p6B[Y6B + 2] + p6B[Y6B + 3] : '',
                    u6B = p6B[m6B + 1] !== undefined ? '' + p6B[m6B] + p6B[m6B + 1] : '',
                    c6B = p6B[d6B + 1] !== undefined ? '' + p6B[d6B] + p6B[d6B + 1] : '',
                    h1B = '' + k6B.getMaxDayOfMonth(E6B || 2012, u6B - 1 || 0),
                    s1B = W6B === E6B && +g6B === +u6B,
                    q1B = f6B === E6B && +R6B === +u6B;
                if (k6B.invalid) {
                    for (a6B = 0; a6B < k6B.invalid.length; ++a6B) {
                        N1B = k6B.getYear(k6B.invalid[a6B]);
                        o6B = k6B.getMonth(k6B.invalid[a6B]);
                        U6B = k6B.getDay(k6B.invalid[a6B]);
                        if (N1B == +E6B && o6B + 1 == +u6B) {
                            if ((U6B < 10 ? 0 : +('' + U6B)[0]) == +p6B[d6B]) {
                                t6B.push(U6B < 10 ? U6B : +('' + U6B)[1]);
                                break;
                            }
                        }
                        if (o6B + 1 == +u6B && U6B == +c6B) {
                            if (('' + N1B).substring(0, 3) == '' + p6B[Y6B] + p6B[Y6B + 1] + p6B[Y6B + 2]) {
                                t6B.push(('' + N1B)[3]);
                                break;
                            }
                        }
                        if (N1B == +E6B && U6B == +c6B) {
                            if ((o6B < 10 ? 0 : +('' + (o6B + 1))[0]) == +p6B[m6B]) {
                                t6B.push(o6B < 10 ? o6B : +('' + (o6B + 1))[1]);
                                break;
                            }
                        }
                    }
                }
                if (c6B == '31' && (p6B.length == m6B || p6B.length == m6B + 1)) {
                    if (p6B[m6B] != 1) {
                        t6B.push(2, 4, 6, 9, 11);
                    } else {
                        t6B.push(1);
                    }
                }
                if (c6B == '30' && p6B[m6B] === 0 && p6B.length <= m6B + 1) {
                    t6B.push(2);
                }
                if (p6B.length == m6B) {
                    for (a6B = f6B === E6B && +R6B < 10 ? 1 : 2; a6B <= 9; ++a6B) {
                        t6B.push(a6B);
                    }
                    if (W6B === E6B && +g6B >= 10) {
                        t6B.push(0);
                    }
                }
                if (p6B.length == m6B + 1) {
                    if (p6B[m6B] == 1) {
                        for (a6B = f6B === E6B ? +R6B[1] + 1 : 3; a6B <= 9; ++a6B) {
                            t6B.push(a6B);
                        }
                        if (W6B == E6B) {
                            for (a6B = 0; a6B < +g6B[1]; ++a6B) {
                                t6B.push(a6B);
                            }
                        }
                    }
                    if (p6B[m6B] === 0) {
                        t6B.push(0);
                        if (f6B === E6B || W6B === E6B) {
                            for (a6B = f6B === E6B ? +c6B > +e6B ? +R6B : +R6B + 1 : 0; a6B <= (W6B === E6B ? +c6B < +Q6B ? +g6B - 1 : +g6B - 1 : 9); ++a6B) {
                                t6B.push(a6B);
                            }
                        }
                    }
                }
                if (p6B.length == d6B) {
                    for (a6B = q1B ? (+e6B > 10 ? +e6B[0] : 0) + 1 : +h1B[0] + 1; a6B <= 9; ++a6B) {
                        t6B.push(a6B);
                    }
                    if (s1B) {
                        for (a6B = 0; a6B < (+Q6B < 10 ? 0 : Q6B[0]); ++a6B) {
                            t6B.push(a6B);
                        }
                    }
                }
                if (p6B.length == d6B + 1) {
                    if (p6B[d6B] >= 3 || u6B == '02') {
                        for (a6B = +h1B[1] + 1; a6B <= 9; ++a6B) {
                            t6B.push(a6B);
                        }
                    }
                    if (q1B && +e6B[0] == p6B[d6B]) {
                        for (a6B = +e6B[1] + 1; a6B <= 9; ++a6B) {
                            t6B.push(a6B);
                        }
                    }
                    if (s1B && Q6B[0] == p6B[d6B]) {
                        for (a6B = 0; a6B < +Q6B[1]; ++a6B) {
                            t6B.push(a6B);
                        }
                    }
                    if (p6B[d6B] === 0) {
                        t6B.push(0);
                        if (q1B || s1B) {
                            for (a6B = q1B ? +e6B + 1 : 1; a6B <= (s1B ? +Q6B - 1 : 9); ++a6B) {
                                t6B.push(a6B);
                            }
                        }
                    }
                }
                if (p6B[Y6B + 2] !== undefined && u6B == '02' && c6B == '29') {
                    for (I6B = +('' + p6B[Y6B] + p6B[Y6B + 1] + p6B[Y6B + 2] + 0); I6B <= +('' + p6B[Y6B] + p6B[Y6B + 1] + p6B[Y6B + 2] + 9); ++I6B) {
                        t6B.push(!l6B(I6B) ? I6B % 10 : '');
                    }
                }
                if (p6B.length == Y6B) {
                    if (k6B.min) {
                        for (a6B = 0; a6B < +W6B[0]; ++a6B) {
                            t6B.push(a6B);
                        }
                    }
                    if (k6B.max) {
                        for (a6B = +f6B[0] + 1; a6B <= 9; ++a6B) {
                            t6B.push(a6B);
                        }
                    }
                    t6B.push(0);
                }
                if (k6B.min || k6B.max) {
                    for (I6B = 1; I6B < 4; ++I6B) {
                        if (p6B.length == Y6B + I6B) {
                            if (p6B[Y6B + I6B - 1] == +W6B[I6B - 1] && (I6B == 3 ? p6B[Y6B + I6B - 2] == +W6B[I6B - 2] : true)) {
                                for (a6B = 0; a6B < +W6B[I6B] + (I6B == 3 && p6B[m6B + 1] && +g6B > +u6B ? 1 : 0); ++a6B) {
                                    t6B.push(a6B);
                                }
                            }
                            if (p6B[Y6B + I6B - 1] == +f6B[I6B - 1] && (I6B == 3 ? p6B[Y6B + I6B - 2] == +f6B[I6B - 2] : true)) {
                                for (a6B = +f6B[I6B] + (I6B == 3 && +R6B < +u6B ? 0 : 1); a6B <= 9; ++a6B) {
                                    t6B.push(a6B);
                                }
                            }
                        }
                    }
                }
                return t6B;
            }

            function H6B(L1B) {
                return new Date(+('' + L1B[Y6B] + L1B[Y6B + 1] + L1B[Y6B + 2] + L1B[Y6B + 3]), +('' + L1B[m6B] + L1B[m6B + 1]) - 1, +('' + L1B[d6B] + L1B[d6B + 1]));
            }
            var Y6B, m6B, d6B, F6B, b6B = [],
                D6B = V2K.extend({}, v6B.settings),
                k6B = V2K.extend(v6B.settings, Q2K.defaults, S1K, D6B),
                A6B = k6B.dateOrder,
                g6B = k6B.min ? '' + (k6B.getMonth(k6B.min) + 1) : 0,
                R6B = k6B.max ? '' + (k6B.getMonth(k6B.max) + 1) : 0,
                Q6B = k6B.min ? '' + k6B.getDay(k6B.min) : 0,
                e6B = k6B.max ? '' + k6B.getDay(k6B.max) : 0,
                W6B = k6B.min ? '' + k6B.getYear(k6B.min) : 0,
                f6B = k6B.max ? '' + k6B.getYear(k6B.max) : 0;
            A6B = A6B.replace(/y+/gi, 'yyyy');
            A6B = A6B.replace(/m+/gi, 'mm');
            A6B = A6B.replace(/d+/gi, 'dd');
            Y6B = A6B.toUpperCase().indexOf('Y');
            m6B = A6B.toUpperCase().indexOf('M');

            d6B = A6B.toUpperCase().indexOf('D');
            A6B = '';
            b6B.push({
                val: Y6B,
                n: 'yyyy'
            }, {
                val: m6B,
                n: 'mm'
            }, {
                val: d6B,
                n: 'dd'
            });
            b6B.sort(function(z6B, y6B) {
                return z6B.val - y6B.val;
            });
            V2K.each(b6B, function(X6B, T6B) {
                A6B += T6B.n;
            });
            Y6B = A6B.indexOf('y');
            m6B = A6B.indexOf('m');
            d6B = A6B.indexOf('d');
            A6B = '';
            for (F6B = 0; F6B < 8; ++F6B) {
                A6B += 'd';
                if (F6B + 1 == Y6B || F6B + 1 == m6B || F6B + 1 == d6B) {
                    A6B += k6B.delimiter;
                }
            }
            v6B.getVal = function(n1B) {
                return v6B._hasValue || n1B ? H6B(v6B.getArrayVal(n1B)) : null;
            };
            return {
                placeholder: '-',
                fill: 'ltr',
                allowLeadingZero: true,
                template: A6B,
                parseValue: function i1B(S1B) {
                    var K1B, x1B = [],
                        O1B = S1B || k6B.defaultValue,
                        w1B = Q2K.parseDate(k6B.dateFormat, O1B, k6B);
                    if (O1B) {
                        for (K1B = 0; K1B < b6B.length; ++K1B) {
                            if (/m/i.test(b6B[K1B].n)) {
                                x1B = x1B.concat(((k6B.getMonth(w1B) < 9 ? '0' : '') + (k6B.getMonth(w1B) + 1)).split(''));
                            } else if (/d/i.test(b6B[K1B].n)) {
                                x1B = x1B.concat(((k6B.getDay(w1B) < 10 ? '0' : '') + k6B.getDay(w1B)).split(''));
                            } else {
                                x1B = x1B.concat((k6B.getYear(w1B) + '').split(''));
                            }
                        }
                    }
                    return x1B;
                },
                formatValue: function C1B(Z1B) {
                    return Q2K.formatDate(k6B.dateFormat, H6B(Z1B), k6B);
                },
                validate: function M1B(G1B) {
                    var J1B = G1B.values,
                        j1B = H6B(J1B);
                    return {
                        disabled: B6B(J1B),
                        invalid: !(j1B != 'Invalid Date' && (k6B.min ? k6B.min <= j1B : true) && (k6B.max ? j1B <= k6B.max : true)) || (k6B.invalid ? v6B._indexOf(k6B.invalid, j1B) != -1 : false)
                    };
                }
            };
        };
        J2K.module('mobiscroll-numpad', []).directive('mobiscrollNumpad', ['$parse', function(P1B) {
            return Z2K.ng.getDDO(P1B, 'mobiscrollNumpad', {
                component: 'Numpad'
            });
        }]);
        var k2K = Z2K.$;
        var u5K = Z2K.presets.scroller;
        var y2K = Z2K.util.datetime;
        var j1K = Z2K.util;
        var J1K = j1K.testTouch;
        var G1K = {
            autoCorrect: true,
            showSelector: true,
            minRange: 1,
            rangeTap: true,
            fromText: 'Start',
            toText: 'End'
        };
        Z2K.presetShort('range');
        u5K.range = function(k1B) {
            function U1B(n8B, i8B) {
                if (n8B) {
                    n8B.setFullYear(i8B.getFullYear());
                    n8B.setMonth(i8B.getMonth());
                    n8B.setDate(i8B.getDate());
                }
            }

            function L8B(x8B) {
                k1B._startDate = b1B = A1B;
                k1B._endDate = g1B = Y1B;
                if (V1B.startInput) {
                    k2K(V1B.startInput).val(Q1B);
                    if (x8B) {
                        k2K(V1B.startInput).trigger('change');
                    }
                }
                if (V1B.endInput) {
                    k2K(V1B.endInput).val(R1B);
                    if (x8B) {
                        k2K(V1B.endInput).trigger('change');
                    }
                }
            }

            function E1B(K8B, O8B) {
                var w8B = true;
                if (K8B && A1B && Y1B) {
                    if (Y1B - A1B > V1B.maxRange - 1) {
                        if (m1B) {
                            A1B = new Date(Y1B - V1B.maxRange + 1);
                        } else {
                            Y1B = new Date(+A1B + V1B.maxRange - 1);
                        }
                    }
                    if (Y1B - A1B < V1B.minRange - 1) {
                        if (m1B) {
                            A1B = new Date(Y1B - V1B.minRange + 1);
                        } else {
                            Y1B = new Date(+A1B + V1B.minRange - 1);
                        }
                    }
                }
                if (!A1B || !Y1B) {
                    w8B = false;
                }
                if (O8B) {
                    N8B();
                }
                return w8B;
            }

            function s8B() {
                return A1B && Y1B ? Math.max(1, Math.round((new Date(Y1B).setHours(0, 0, 0, 0) - new Date(A1B).setHours(0, 0, 0, 0)) / 86400000) + 1) : 0;
            }

            function h8B(S8B) {
                S8B.addClass('mbsc-range-btn-sel').attr('aria-checked', 'true').find('.mbsc-range-btn').addClass(T1B);
            }

            function I1B() {
                if (p1B && d1B) {
                    k2K('.mbsc-range-btn-c', d1B).removeClass('mbsc-range-btn-sel').removeAttr('aria-checked').find('.mbsc-range-btn', d1B).removeClass(T1B);
                    h8B(k2K('.mbsc-range-btn-c', d1B).eq(m1B));
                }
            }

            function N8B() {
                var C8B, J8B, Z8B, G8B, M8B, j8B = 0,
                    P8B = f1B || !m1B ? ' mbsc-cal-day-hl mbsc-cal-sel-start' : ' mbsc-cal-sel-start',
                    V8B = f1B || m1B ? ' mbsc-cal-day-hl mbsc-cal-sel-end' : ' mbsc-cal-sel-end';
                Q1B = A1B ? y2K.formatDate(W1B, A1B, V1B) : '';
                R1B = Y1B ? y2K.formatDate(W1B, Y1B, V1B) : '';
                if (d1B) {
                    k2K('.mbsc-range-btn-v-start', d1B).html(Q1B || '&nbsp;');
                    k2K('.mbsc-range-btn-v-end', d1B).html(R1B || '&nbsp;');
                    C8B = A1B ? new Date(A1B) : null;
                    Z8B = Y1B ? new Date(Y1B) : null;
                    if (!C8B && Z8B) {
                        C8B = new Date(Z8B);
                    }
                    if (!Z8B && C8B) {
                        Z8B = new Date(C8B);
                    }
                    M8B = m1B ? Z8B : C8B;
                    k2K('.mbsc-cal-table .mbsc-cal-day-sel .mbsc-cal-day-i', d1B).removeClass(T1B);
                    k2K('.mbsc-cal-table .mbsc-cal-day-hl', d1B).removeClass(B1B);
                    k2K('.mbsc-cal-table .mbsc-cal-day-sel', d1B).removeClass('mbsc-cal-day-sel mbsc-cal-sel-start mbsc-cal-sel-end').removeAttr('aria-selected');
                    if (C8B && Z8B) {
                        J8B = C8B.setHours(0, 0, 0, 0);
                        G8B = Z8B.setHours(0, 0, 0, 0);
                        while (Z8B >= C8B && j8B < 84) {
                            k2K('.mbsc-cal-day[data-full="' + M8B.getFullYear() + '-' + M8B.getMonth() + '-' + M8B.getDate() + '"]', d1B).addClass('mbsc-cal-day-sel' + (M8B.getTime() === J8B ? P8B : '') + (M8B.getTime() === G8B ? V8B : '')).attr('aria-selected', 'true').find('.mbsc-cal-day-i ').addClass(T1B);
                            M8B.setDate(M8B.getDate() + (m1B ? -1 : 1));
                            j8B++;
                        }
                    }
                }
            }

            function r1B(k8B, Y8B) {
                return {
                    h: k8B ? k8B.getHours() : Y8B ? 23 : 0,
                    i: k8B ? k8B.getMinutes() : Y8B ? 59 : 0,
                    s: k8B ? k8B.getSeconds() : Y8B ? 59 : 0
                };
            }
            var H1B, d1B, v1B, W1B, a1B, e1B, D1B, Q1B, R1B, A1B, l1B, Y1B, y1B, q8B, c1B, o1B, p1B, b1B = k1B._startDate,
                g1B = k1B._endDate,
                m1B = 0,
                z1B = new Date(),
                u1B = k2K.extend({}, k1B.settings),
                V1B = k2K.extend(k1B.settings, G1K, u1B),
                X1B = V1B.anchor,
                f1B = V1B.rangeTap,
                T1B = V1B.activeClass || '',
                t1B = 'mbsc-fr-btn-d ' + (V1B.disabledClass || ''),
                B1B = 'mbsc-cal-day-hl',
                F1B = V1B.defaultValue === null ? [] : V1B.defaultValue || [new Date(z1B.setHours(0, 0, 0, 0)), new Date(z1B.getFullYear(), z1B.getMonth(), z1B.getDate() + 6, 23, 59, 59, 999)];
            if (f1B) {
                V1B.tabs = true;
            }
            a1B = u5K.calbase.call(this, k1B);
            H1B = k2K.extend({}, a1B);
            W1B = k1B.format;
            q8B = V1B.controls.join('') === 'time';
            p1B = V1B.controls.length == 1 && V1B.controls[0] == 'calendar' ? V1B.showSelector : true;
            if (V1B.startInput) {
                c1B = k2K(V1B.startInput).prop('readonly');
                k1B.attachShow(k2K(V1B.startInput).prop('readonly', true), function() {
                    m1B = 0;
                    V1B.anchor = X1B || k2K(V1B.startInput);
                });
            }
            if (V1B.endInput) {
                o1B = k2K(V1B.endInput).prop('readonly');
                k1B.attachShow(k2K(V1B.endInput).prop('readonly', true), function() {
                    m1B = 1;
                    V1B.anchor = X1B || k2K(V1B.endInput);
                });
            }
            k1B.setVal = function(d8B, W8B, b8B, f8B, g8B) {
                var m8B = d8B || [],
                    A8B = d8B;
                if (m8B[0] === undefined || m8B[0] === null || m8B[0].getTime) {
                    D1B = true;
                    A1B = m8B[0] || null;
                    Q1B = A1B ? y2K.formatDate(W1B, A1B, V1B) : '';
                    if (!m1B) {
                        A8B = H1B.parseValue(Q1B, k1B);
                    }
                }
                if (m8B[1] === undefined || m8B[1] === null || m8B[1].getTime) {
                    D1B = true;
                    Y1B = m8B[1] || null;
                    R1B = Y1B ? y2K.formatDate(W1B, Y1B, V1B) : '';
                    if (m1B) {
                        A8B = H1B.parseValue(R1B, k1B);
                    }
                }
                if (!f8B) {
                    k1B._startDate = b1B = A1B;
                    k1B._endDate = g1B = Y1B;
                }
                k1B._setVal(A8B, W8B, b8B, f8B, g8B);
            };
            k1B.getVal = function(R8B) {
                return R8B ? [A1B, Y1B] : k1B._hasValue ? [b1B, g1B] : null;
            };
            k1B.getDayProps = function(e8B) {
                var Q8B = A1B ? new Date(A1B.getFullYear(), A1B.getMonth(), A1B.getDate()) : null,
                    F8B = Y1B ? new Date(Y1B.getFullYear(), Y1B.getMonth(), Y1B.getDate()) : null;
                return {
                    selected: Q8B && F8B && e8B >= Q8B && e8B <= Y1B,
                    cssClass: ((f1B || !m1B) && Q8B && Q8B.getTime() === e8B.getTime() || (f1B || m1B) && F8B && F8B.getTime() === e8B.getTime() ? B1B : '') + (Q8B && Q8B.getTime() === e8B.getTime() ? ' mbsc-cal-sel-start' : '') + (F8B && F8B.getTime() === e8B.getTime() ? ' mbsc-cal-sel-end' : '')
                };
            };
            k1B.setActiveDate = function(H8B) {
                var v8B;
                m1B = H8B == 'start' ? 0 : 1;
                v8B = H8B == 'start' ? A1B : Y1B;
                if (k1B.isVisible()) {
                    I1B();
                    if (!f1B) {
                        k2K('.mbsc-cal-table .mbsc-cal-day-hl', d1B).removeClass(B1B);
                        if (v8B) {
                            k2K('.mbsc-cal-day[data-full="' + v8B.getFullYear() + '-' + v8B.getMonth() + '-' + v8B.getDate() + '"]', d1B).addClass(B1B);
                        }
                    }
                    if (v8B) {
                        e1B = true;
                        k1B.setDate(v8B, false, 1000, true);
                    }
                }
            };
            k1B.getValue = k1B.getVal;
            k2K.extend(a1B, {
                highlight: false,
                outerMonthChange: false,
                formatValue: function D8B() {
                    return Q1B + (V1B.endInput ? '' : R1B ? ' - ' + R1B : '');
                },
                parseValue: function l8B(z8B) {
                    var B8B = z8B ? z8B.split(' - ') : [];
                    V1B.defaultValue = F1B[1];
                    if (V1B.endInput) {
                        g1B = k2K(V1B.endInput).val() ? y2K.parseDate(W1B, k2K(V1B.endInput).val(), V1B) : F1B[1];
                    } else {
                        g1B = B8B[1] ? y2K.parseDate(W1B, B8B[1], V1B) : F1B[1];
                    }
                    V1B.defaultValue = F1B[0];
                    if (V1B.startInput) {
                        b1B = k2K(V1B.startInput).val() ? y2K.parseDate(W1B, k2K(V1B.startInput).val(), V1B) : F1B[0];
                    } else {
                        b1B = B8B[0] ? y2K.parseDate(W1B, B8B[0], V1B) : F1B[0];
                    }
                    V1B.defaultValue = F1B[m1B];
                    Q1B = b1B ? y2K.formatDate(W1B, b1B, V1B) : '';
                    R1B = g1B ? y2K.formatDate(W1B, g1B, V1B) : '';
                    k1B._startDate = b1B;
                    k1B._endDate = g1B;
                    return H1B.parseValue(m1B ? R1B : Q1B, k1B);
                },
                onFill: function y8B(T8B) {
                    L8B(T8B.change);
                },
                onBeforeClose: function X8B(r8B) {
                    if (r8B.button === 'set' && !E1B(true, true)) {
                        k1B.setActiveDate(m1B ? 'start' : 'end');
                        return false;
                    }
                },
                onHide: function a8B() {
                    H1B.onHide.call(k1B);
                    m1B = 0;
                    d1B = null;
                    V1B.anchor = X1B;
                },
                onClear: function p8B() {
                    if (f1B) {
                        m1B = 0;
                    }
                },
                onBeforeShow: function t8B() {
                    V1B.headerText = false;
                    A1B = b1B;
                    Y1B = g1B;
                    l1B = r1B(A1B, 0);
                    y1B = r1B(Y1B, 1);
                    if (V1B.counter) {
                        V1B.headerText = function() {
                            var I8B = s8B();
                            return (I8B > 1 ? V1B.selectedPluralText || V1B.selectedText : V1B.selectedText).replace(/{count}/, I8B);
                        };
                    }
                    D1B = true;
                },
                onMarkupReady: function E8B(u8B) {
                    var o8B;
                    if (A1B) {
                        e1B = true;
                        k1B.setDate(A1B, false, 0, true);
                        A1B = k1B.getDate(true);
                    }
                    if (Y1B) {
                        e1B = true;
                        k1B.setDate(Y1B, false, 0, true);
                        Y1B = k1B.getDate(true);
                    }
                    if (m1B && Y1B || !m1B && A1B) {
                        e1B = true;
                        k1B.setDate(m1B ? Y1B : A1B, false, 0, true);
                    }
                    N8B();
                    H1B.onMarkupReady.call(this, u8B);
                    d1B = k2K(u8B.target);
                    d1B.addClass('mbsc-range');
                    if (p1B) {
                        o8B = '<div class="mbsc-range-btn-t" role="radiogroup">' + '<div class="mbsc-range-btn-c mbsc-range-btn-start"><div role="radio" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-range-btn">' + V1B.fromText + '<div class="mbsc-range-btn-v mbsc-range-btn-v-start">' + (Q1B || '&nbsp;') + '</div></div></div>' + '<div class="mbsc-range-btn-c mbsc-range-btn-end"><div role="radio" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-range-btn">' + V1B.toText + '<div class="mbsc-range-btn-v mbsc-range-btn-v-end">' + (R1B || '&nbsp;') + '</div></div></div>' + '</div>';
                        k2K('.mbsc-cal-tabs', d1B).before(o8B);
                        I1B();
                    }
                    k2K('.mbsc-range-btn-c', d1B).on('touchstart click', function(U8B) {
                        if (J1K(U8B, this)) {
                            k1B.showMonthView();
                            k1B.setActiveDate(k2K(this).index() ? 'end' : 'start');
                        }
                    });
                },
                onDayChange: function c8B(q9B) {
                    q9B.active = m1B ? 'end' : 'start';
                    v1B = true;
                },
                onSetDate: function N9B(L9B) {
                    var s9B = L9B.date,
                        h9B = k1B.order;
                    if (!e1B) {
                        if (h9B.h === undefined) {
                            s9B.setHours(m1B ? 23 : 0);
                        }
                        if (h9B.i === undefined) {
                            s9B.setMinutes(m1B ? 59 : 0);
                        }
                        if (h9B.s === undefined) {
                            s9B.setSeconds(m1B ? 59 : 0);
                        }
                        s9B.setMilliseconds(m1B ? 999 : 0);
                        if (!D1B || v1B) {
                            if (f1B && v1B) {
                                if (m1B == 1 && s9B < A1B) {
                                    m1B = 0;
                                }
                                if (m1B) {
                                    s9B.setHours(y1B.h, y1B.i, y1B.s, 999);
                                } else {
                                    s9B.setHours(l1B.h, l1B.i, l1B.s, 0);
                                }
                            }
                            if (m1B) {
                                Y1B = new Date(s9B);
                                y1B = r1B(Y1B);
                            } else {
                                A1B = new Date(s9B);
                                l1B = r1B(A1B);
                            }
                            if (q8B) {
                                U1B(A1B, s9B);
                                U1B(Y1B, s9B);
                            }
                            if (f1B && v1B && !m1B) {
                                Y1B = null;
                            }
                        }
                    }
                    k1B._isValid = E1B(D1B || v1B || V1B.autoCorrect, !e1B);
                    L9B.active = m1B ? 'end' : 'start';
                    if (!e1B && f1B) {
                        if (v1B) {
                            m1B = m1B ? 0 : 1;
                        }
                        I1B();
                    }
                    if (k1B.isVisible()) {
                        if (k1B._isValid) {
                            k2K('.mbsc-fr-btn-s .mbsc-fr-btn', k1B._markup).removeClass(t1B);
                        } else {
                            k2K('.mbsc-fr-btn-s .mbsc-fr-btn', k1B._markup).addClass(t1B);
                        }
                    }
                    v1B = false;
                    D1B = false;
                    e1B = false;
                },
                onTabChange: function n9B(i9B) {
                    if (i9B.tab != 'calendar') {
                        k1B.setDate(m1B ? Y1B : A1B, false, 1000, true);
                    }
                    E1B(true, true);
                },
                onDestroy: function x9B() {
                    k2K(V1B.startInput).prop('readonly', c1B);
                    k2K(V1B.endInput).prop('readonly', o1B);
                }
            });
            return a1B;
        };
        J2K.module('mobiscroll-range', []).directive('mobiscrollRange', ['$parse', function(w9B) {
            return Z2K.ng.getDDO(w9B, 'mobiscrollRange', {
                preset: 'range'
            });
        }]);
        var B2K = Z2K.$;
        var V1K = {
            inputClass: '',
            values: 5,
            order: 'desc',
            style: 'icon',
            invalid: [],
            icon: {
                filled: 'star3',
                empty: 'star3'
            }
        };
        Z2K.presetShort('rating');
        Z2K.presets.scroller.rating = function(J9B) {
            var Q9B = B2K.extend({}, J9B.settings),
                K9B = B2K.extend(J9B.settings, V1K, Q9B),
                C9B = B2K(this),
                A9B = this.id + '_dummy',
                b9B = B2K('label[for="' + this.id + '"]').attr('for', A9B),
                e9B = K9B.label !== undefined ? K9B.label : b9B.length ? b9B.text() : C9B.attr('name'),
                k9B = K9B.defaultValue,
                W9B = [
                    []
                ],
                g9B = {
                    data: [],
                    label: e9B,
                    circular: false
                },
                P9B = {},
                S9B = [],
                Z9B, m9B = false,
                O9B, j9B, V9B, d9B, f9B, R9B, M9B, Y9B, F9B, G9B = K9B.style === 'grade' ? 'circle' : 'icon';
            if (C9B.is('select')) {
                K9B.values = {};
                B2K('option', C9B).each(function() {
                    K9B.values[B2K(this).val()] = B2K(this).text();
                });
                B2K('#' + A9B).remove();
            }
            if (B2K.isArray(K9B.values)) {
                for (O9B = 0; O9B < K9B.values.length; O9B++) {
                    M9B = +K9B.values[O9B];
                    if (isNaN(M9B)) {
                        M9B = O9B + 1;
                        m9B = true;
                    }
                    S9B.push({
                        order: M9B,
                        key: K9B.values[O9B],
                        value: K9B.values[O9B]
                    });
                }
            } else if (B2K.isPlainObject(K9B.values)) {
                O9B = 1;
                m9B = true;
                for (Y9B in K9B.values) {
                    M9B = +Y9B;
                    if (isNaN(M9B)) {
                        M9B = O9B;
                    }
                    S9B.push({
                        order: M9B,
                        key: Y9B,
                        value: K9B.values[Y9B]
                    });
                    O9B++;
                }
            } else {
                for (O9B = 1; O9B <= K9B.values; O9B++) {
                    S9B.push({
                        order: O9B,
                        key: O9B,
                        value: O9B
                    });
                }
            }
            if (K9B.showText === undefined && m9B) {
                K9B.showText = true;
            }
            if (K9B.icon.empty === undefined) {
                K9B.icon.empty = K9B.icon.filled;
            }
            S9B.sort(function(v9B, H9B) {
                return K9B.order == 'desc' ? H9B.order - v9B.order : v9B.order - H9B.order;
            });
            F9B = K9B.order == 'desc' ? S9B[0].order : S9B[S9B.length - 1].order;
            for (O9B = 0; O9B < S9B.length; O9B++) {
                R9B = S9B[O9B].order;
                d9B = S9B[O9B].key;
                f9B = S9B[O9B].value;
                V9B = '';
                for (j9B = 1; j9B < R9B + 1; j9B++) {
                    V9B += '<span class="mbsc-rating-' + G9B + (G9B === 'circle' ? '' : ' mbsc-ic mbsc-ic-' + K9B.icon.filled) + ' ">' + (G9B == 'circle' ? j9B : ' ') + '</span>';
                }
                for (j9B = R9B + 1; j9B <= F9B; j9B++) {
                    V9B += '<span class="mbsc-rating-' + G9B + (G9B === 'circle' ? ' mbsc-rating-circle-unf' : ' mbsc-ic mbsc-ic-' + (K9B.icon.empty ? K9B.icon.empty + ' mbsc-rating-icon-unf' : '') + (K9B.icon.empty === K9B.icon.filled ? ' mbsc-rating-icon-same' : '')) + '"></span>';
                }
                if (k9B === undefined) {
                    k9B = d9B;
                }
                V9B += K9B.showText ? '<span class="mbsc-rating-txt">' + f9B + '</span>' : '';
                g9B.data.push({
                    value: d9B,
                    display: V9B,
                    label: f9B
                });
                P9B[d9B] = f9B;
            }
            if (C9B.is('select')) {
                Z9B = B2K('<input type="text" id="' + A9B + '" value="' + P9B[C9B.val()] + '" class="' + K9B.inputClass + '" placeholder="' + (K9B.placeholder || '') + '" readonly />').insertBefore(C9B);
            }
            W9B[0].push(g9B);
            if (Z9B) {
                J9B.attachShow(Z9B);
            }
            if (C9B.is('select')) {
                C9B.hide().closest('.ui-field-contain').trigger('create');
            }
            J9B.getVal = function(l9B) {
                var D9B = J9B._hasValue ? J9B[l9B ? '_tempWheelArray' : '_wheelArray'][0] : null;
                return Z2K.util.isNumeric(D9B) ? +D9B : D9B;
            };
            return {
                anchor: Z9B,
                wheels: W9B,
                headerText: false,
                compClass: 'mbsc-rating',
                setOnTap: true,
                formatValue: function B9B(z9B) {
                    return P9B[z9B[0]];
                },
                parseValue: function y9B(X9B) {
                    var T9B;
                    for (T9B in P9B) {
                        if (Z9B && T9B == X9B || !Z9B && P9B[T9B] == X9B) {
                            return [T9B];
                        }
                    }
                    return [k9B];
                },
                validate: function r9B() {
                    return {
                        disabled: [K9B.invalid]
                    };
                },
                onFill: function a9B(p9B) {
                    if (Z9B) {
                        Z9B.val(p9B.valueText);
                        C9B.val(J9B._tempWheelArray[0]);
                    }
                },
                onDestroy: function t9B() {
                    if (Z9B) {
                        Z9B.remove();
                    }
                    C9B.show();
                }
            };
        };
        J2K.module('mobiscroll-rating', []).directive('mobiscrollRating', ['$parse', function(I9B) {
            return Z2K.ng.getDDO(I9B, 'mobiscrollRating', {
                preset: 'rating'
            });
        }]);
        J2K.module('mobiscroll-scroller', []).directive('mobiscrollScroller', ['$parse', function(E9B) {
            return Z2K.ng.getDDO(E9B, 'mobiscrollScroller', {});
        }]);
        var k1K = 0;
        Z2K.util.getJson = c5K;
        var f2K = Z2K.$;
        var M0K = Z2K.util;
        var D4K = M0K.isString;
        var b1K = {
            inputClass: '',
            invalid: [],
            rtl: false,
            showInput: true,
            groupLabel: 'Groups',
            dataHtml: 'html',
            dataText: 'text',
            dataValue: 'value',
            dataGroup: 'group',
            dataDisabled: 'disabled',
            filterPlaceholderText: 'Type to filter',
            filterEmptyText: 'No results',
            filterClearIcon: 'material-close'
        };
        Z2K.presetShort('select');
        Z2K.presets.scroller.select = function(w7q) {
            function y7q(O3q) {
                var w3q, J3q, K3q, i3q, j3q, x3q, Z3q = 0,
                    S3q = 0,
                    C3q = {};
                O7q = {};
                V7q = {};
                Z7q = [];
                F7q = [];
                m7q.length = 0;
                if (e7q) {
                    f2K.each(g7q, function(P3q, G3q) {
                        j3q = G3q[x7q.dataText];
                        J3q = G3q[x7q.dataHtml];
                        x3q = G3q[x7q.dataValue];
                        K3q = G3q[x7q.dataGroup];
                        i3q = {
                            value: x3q,
                            html: J3q,
                            text: j3q,
                            index: P3q
                        };
                        O7q[x3q] = i3q;
                        if (!O3q || r7q(j3q, O3q)) {
                            Z7q.push(i3q);
                            if (f7q) {
                                if (C3q[K3q] === undefined) {
                                    w3q = {
                                        text: K3q,
                                        value: S3q,
                                        options: [],
                                        index: S3q
                                    };
                                    V7q[S3q] = w3q;
                                    C3q[K3q] = S3q;
                                    F7q.push(w3q);
                                    S3q++;
                                } else {
                                    w3q = V7q[C3q[K3q]];
                                }
                                if (A7q) {
                                    i3q.index = w3q.options.length;
                                }
                                i3q.group = C3q[K3q];
                                w3q.options.push(i3q);
                            }
                            if (G3q[x7q.dataDisabled]) {
                                m7q.push(x3q);
                            }
                        }
                    });
                } else {
                    if (f7q) {
                        var M3q = true;
                        f2K('optgroup', S7q).each(function(V3q) {
                            V7q[V3q] = {
                                text: this.label,
                                value: V3q,
                                options: [],
                                index: V3q
                            };
                            M3q = true;
                            f2K('option', this).each(function(k3q) {
                                i3q = {
                                    value: this.value,
                                    text: this.text,
                                    index: A7q ? k3q : Z3q++,
                                    group: V3q
                                };
                                O7q[this.value] = i3q;
                                if (!O3q || r7q(this.text, O3q)) {
                                    if (M3q) {
                                        F7q.push(V7q[V3q]);
                                        M3q = false;
                                    }
                                    Z7q.push(i3q);
                                    V7q[V3q].options.push(i3q);
                                    if (this.disabled) {
                                        m7q.push(this.value);
                                    }
                                }
                            });
                        });
                    } else {
                        f2K('option', S7q).each(function(Y3q) {
                            i3q = {
                                value: this.value,
                                text: this.text,
                                index: Y3q
                            };
                            O7q[this.value] = i3q;
                            if (!O3q || r7q(this.text, O3q)) {
                                Z7q.push(i3q);
                                if (this.disabled) {
                                    m7q.push(this.value);
                                }
                            }
                        });
                    }
                }
                if (Z7q.length) {
                    t7q = Z7q[0].value;
                }
                if (a7q) {
                    Z7q = [];
                    Z3q = 0;
                    f2K.each(V7q, function(A3q, m3q) {
                        if (m3q.options.length) {
                            x3q = '__group' + A3q;
                            i3q = {
                                text: m3q.text,
                                value: x3q,
                                group: A3q,
                                index: Z3q++,
                                cssClass: 'mbsc-sel-gr'
                            };
                            O7q[x3q] = i3q;
                            Z7q.push(i3q);
                            m7q.push(i3q.value);
                            f2K.each(m3q.options, function(f3q, d3q) {
                                d3q.index = Z3q++;
                                Z7q.push(d3q);
                            });
                        }
                    });
                }
                if (Q7q) {
                    if (Z7q.length) {
                        Q7q.removeClass('mbsc-sel-empty-v');
                    } else {
                        Q7q.addClass('mbsc-sel-empty-v');
                    }
                }
            }

            function E7q(b3q, R3q, Q3q) {
                var W3q, g3q = [];
                for (W3q = 0; W3q < b3q.length; W3q++) {
                    g3q.push({
                        value: b3q[W3q].value,
                        display: b3q[W3q].html || b3q[W3q].text,
                        cssClass: b3q[W3q].cssClass
                    });
                }
                return {
                    circular: false,
                    multiple: R3q,
                    data: g3q,
                    label: Q3q
                };
            }

            function u7q() {
                return E7q(F7q, false, x7q.groupLabel);
            }

            function T7q() {
                return E7q(A7q ? V7q[G7q].options : Z7q, Y7q, p7q);
            }

            function U7q() {
                var F3q, v3q, e3q = [
                    []
                ];
                if (j7q) {
                    F3q = u7q();
                    if (z7q) {
                        e3q[0][M7q] = F3q;
                    } else {
                        e3q[M7q] = [F3q];
                    }
                }
                v3q = T7q();
                if (z7q) {
                    e3q[0][K7q] = v3q;
                } else {
                    e3q[K7q] = [v3q];
                }
                return e3q;
            }

            function v7q(H3q) {
                if (P7q) {
                    if (H3q && D4K(H3q)) {
                        H3q = H3q.split(',');
                    }
                    if (f2K.isArray(H3q)) {
                        H3q = H3q[0];
                    }
                }
                C7q = H3q === undefined || H3q === null || H3q === '' || !O7q[H3q] ? t7q : H3q;
                if (j7q) {
                    G7q = O7q[C7q] ? O7q[C7q].group : null;
                }
            }

            function n3q(l3q, B3q) {
                var D3q = l3q ? w7q._tempWheelArray : w7q._hasValue ? w7q._wheelArray : null;
                return D3q ? x7q.group && B3q ? D3q : D3q[K7q] : null;
            }

            function L3q(X3q) {
                var z3q, y3q, T3q = [];
                if (Y7q) {
                    for (z3q in w7q._tempSelected[K7q]) {
                        T3q.push(l7q[z3q] || (O7q[z3q] ? O7q[z3q].text : ''));
                    }
                    return T3q.join(', ');
                }
                y3q = X3q[K7q];
                return O7q[y3q] ? O7q[y3q].text : '';
            }

            function s3q() {
                var r3q = w7q.getVal(),
                    a3q = w7q._tempValue;
                if (!(x7q.filter && x7q.display == 'inline')) {
                    J7q.val(a3q);
                }
                S7q.val(r3q);
            }

            function h3q() {
                var p3q = {};
                p3q[K7q] = T7q();
                H7q = true;
                w7q.changeWheel(p3q);
            }

            function r7q(I3q, t3q) {
                t3q = t3q.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
                return I3q.match(new RegExp(t3q, 'ig'));
            }

            function q3q(E3q) {
                return x7q.data.dataField ? E3q[x7q.data.dataField] : x7q.data.processResponse ? x7q.data.processResponse(E3q) : E3q;
            }

            function c7q(o3q) {
                var u3q = {};
                y7q(o3q);
                x7q.wheels = U7q();
                v7q(C7q);
                u3q[K7q] = T7q();
                w7q._tempWheelArray[K7q] = C7q;
                if (j7q) {
                    u3q[M7q] = u7q();
                    w7q._tempWheelArray[M7q] = G7q;
                }
                if (w7q._isVisible) {
                    w7q.changeWheel(u3q, 0, true);
                }
            }
            var J7q, g7q, t7q, I7q, k7q, G7q, F7q, V7q, M7q, b7q, C7q, Z7q, K7q, H7q, l7q = {},
                X7q = 1000,
                S7q = f2K(this),
                N3q = f2K.extend({}, w7q.settings),
                x7q = f2K.extend(w7q.settings, b1K, N3q),
                Q7q = f2K('<div class="mbsc-sel-empty">' + x7q.filterEmptyText + '</div>'),
                o7q = x7q.readonly,
                O7q = {},
                B7q = x7q.layout || (/top|bottom|inline/.test(x7q.display) || x7q.filter ? 'liquid' : ''),
                z7q = B7q == 'liquid',
                P7q = M0K.isNumeric(x7q.select) ? x7q.select : x7q.select == 'multiple' || S7q.prop('multiple'),
                Y7q = P7q || (x7q.filter ? 1 : false),
                R7q = this.id + '_dummy',
                D7q = f2K('label[for="' + this.id + '"]').attr('for', R7q),
                p7q = x7q.label !== undefined ? x7q.label : D7q.length ? D7q.text() : S7q.attr('name'),
                e7q = !!x7q.data,
                f7q = e7q ? !!x7q.group : f2K('optgroup', S7q).length,
                d7q = x7q.group,
                j7q = f7q && d7q && d7q.groupWheel !== false,
                A7q = f7q && d7q && j7q && d7q.clustered === true,
                a7q = f7q && (!d7q || d7q.header !== false && !A7q),
                W7q = S7q.val() || (P7q ? [] : ['']),
                m7q = [];
            w7q.setVal = function(U3q, q2q, N2q, c3q, s2q) {
                if (Y7q) {
                    if (U3q && !P7q) {
                        U3q = [U3q];
                    }
                    if (U3q && D4K(U3q)) {
                        U3q = U3q.split(',');
                    }
                    w7q._tempSelected[K7q] = M0K.arrayToObject(U3q);
                    if (!c3q) {
                        w7q._selected[K7q] = M0K.arrayToObject(U3q);
                    }
                    U3q = U3q ? U3q[0] : null;
                }
                w7q._setVal(U3q, q2q, N2q, c3q, s2q);
            };
            w7q.getVal = function(L2q, n2q) {
                if (Y7q) {
                    var h2q = M0K.objectToArray(L2q ? w7q._tempSelected[K7q] : w7q._selected[K7q]);
                    return P7q ? h2q : h2q.length ? h2q[0] : null;
                }
                return n3q(L2q, n2q);
            };
            w7q.refresh = function(i2q, x2q) {
                if (i2q) {
                    g7q = i2q;
                } else if (f2K.isArray(x7q.data)) {
                    g7q = x7q.data;
                }
                if (!i2q && b7q && x2q === undefined) {
                    c5K(x7q.data.url, function(w2q) {
                        g7q = q3q(w2q);
                        c7q();
                    }, x7q.data.dataType);
                } else {
                    c7q(x2q);
                }
            };
            if (!x7q.invalid.length) {
                x7q.invalid = m7q;
            }
            if (j7q) {
                M7q = 0;
                K7q = 1;
            } else {
                M7q = -1;
                K7q = 0;
            }
            if (Y7q) {
                if (P7q) {
                    S7q.prop('multiple', true);
                }
                if (W7q && D4K(W7q)) {
                    W7q = W7q.split(',');
                }
                w7q._selected[K7q] = M0K.arrayToObject(W7q);
            }
            if (w7q._dummyInput) {
                w7q._dummyInput.remove();
            }
            if (S7q.next().is('input.mbsc-control')) {
                J7q = S7q.off('.mbsc-form').next().removeAttr('tabindex');
            } else {
                if (x7q.filter && x7q.display == 'inline') {
                    w7q._dummyInput = f2K('<div class="mbsc-sel-input-wrap"><input type="text" id="' + R7q + '" class="mbsc-control ' + x7q.inputClass + '" readonly /></div>');
                } else {
                    J7q = f2K('<input type="text" id="' + R7q + '" class="mbsc-control ' + x7q.inputClass + '" readonly />');
                    w7q._dummyInput = J7q;
                }
                if (x7q.showInput) {
                    w7q._dummyInput.insertBefore(S7q);
                    if (!J7q) {
                        J7q = w7q._dummyInput.find('#' + R7q);
                    }
                }
            }
            w7q.attachShow(J7q.attr('placeholder', x7q.placeholder || ''));
            S7q.addClass('mbsc-sel-hdn').attr('tabindex', -1);
            if (x7q.filter) {
                I7q = x7q.filter.minLength || 0;
            }
            b7q = x7q.data && x7q.data.url;
            if (b7q) {
                w7q.refresh();
            } else {
                if (e7q) {
                    g7q = x7q.data;
                }
                y7q();
                v7q(S7q.val());
            }
            return {
                layout: B7q,
                headerText: false,
                anchor: J7q,
                compClass: 'mbsc-sel' + (j7q ? ' mbsc-sel-gr-whl' : '') + (Y7q ? ' mbsc-sel-multi' : ''),
                setOnTap: j7q ? [false, true] : true,
                formatValue: L3q,
                parseValue: function K2q(O2q) {
                    v7q(O2q === undefined ? S7q.val() : O2q);
                    return j7q ? [G7q, C7q] : [C7q];
                },
                validate: function S2q(M2q) {
                    var Z2q = M2q.index,
                        C2q = [];
                    C2q[K7q] = x7q.invalid;
                    if (A7q && !H7q && Z2q === undefined) {
                        h3q();
                    }
                    H7q = false;
                    return {
                        disabled: C2q
                    };
                },
                onRead: s3q,
                onFill: s3q,
                onMarkupReady: function j2q(m2q, P2q) {
                    if (x7q.filter) {
                        var V2q, Y2q, J2q, k2q = f2K('.mbsc-fr-w', m2q.target),
                            G2q = f2K('<span class="mbsc-sel-filter-clear mbsc-ic mbsc-ic-' + x7q.filterClearIcon + '"></span>');
                        if (x7q.display == 'inline') {
                            V2q = J7q;
                            J7q.parent().find('.mbsc-sel-filter-clear').remove();
                        } else {
                            k2q.prepend('<div class="mbsc-input mbsc-sel-filter-cont mbsc-control-w"><span class="mbsc-input-wrap"><input type="text" class="mbsc-sel-filter-input mbsc-control"/></span></div>');
                            V2q = k2q.find('.mbsc-sel-filter-input');
                        }
                        k7q = '';
                        J2q = V2q[0];
                        V2q.prop('readonly', false).attr('placeholder', x7q.filterPlaceholderText).parent().append(G2q);
                        k2q.find('.mbsc-fr-c').prepend(Q7q);
                        P2q.tap(G2q, function() {
                            J2q.value = '';
                            P2q.refresh();
                            G2q.removeClass('mbsc-sel-filter-show-clear');
                        });
                        V2q.on('keydown', function(A2q) {
                            if (A2q.keyCode == 13 || A2q.keyCode == 27) {
                                A2q.stopPropagation();
                                J2q.blur();
                            }
                        }).on('keyup', function() {
                            clearTimeout(Y2q);
                            if (J2q.value.length) {
                                G2q.addClass('mbsc-sel-filter-show-clear');
                            } else {
                                G2q.removeClass('mbsc-sel-filter-show-clear');
                            }
                            Y2q = setTimeout(function() {
                                if (k7q === J2q.value || P2q.trigger('onFilter', {
                                        filterText: J2q.value
                                    }) === false) {
                                    return;
                                }
                                k7q = J2q.value;
                                if (k7q.length >= I7q || !k7q.length) {
                                    if (b7q && x7q.data.remoteFilter) {
                                        c5K(x7q.data.url + encodeURIComponent(k7q), function(d2q) {
                                            P2q.refresh(q3q(d2q));
                                        }, x7q.data.dataType);
                                    } else {
                                        P2q.refresh(undefined, k7q);
                                    }
                                }
                            }, 500);
                        });
                    }
                },
                onBeforeShow: function f2q() {
                    if (P7q && x7q.counter) {
                        x7q.headerText = function() {
                            var W2q = 0;
                            f2K.each(w7q._tempSelected[K7q], function() {
                                W2q++;
                            });
                            return (W2q > 1 ? x7q.selectedPluralText || x7q.selectedText : x7q.selectedText).replace(/{count}/, W2q);
                        };
                    }
                    v7q(S7q.val());
                    if (x7q.filter) {
                        y7q(undefined);
                    }
                    w7q.settings.wheels = U7q();
                    H7q = true;
                },
                onWheelGestureStart: function b2q(g2q) {
                    if (g2q.index == M7q) {
                        x7q.readonly = [false, true];
                    }
                },
                onWheelAnimationEnd: function R2q(e2q) {
                    var Q2q = w7q.getArrayVal(true);
                    if (e2q.index == M7q) {
                        x7q.readonly = o7q;
                        if (Q2q[M7q] != G7q) {
                            G7q = Q2q[M7q];
                            C7q = V7q[G7q].options[0].value;
                            Q2q[K7q] = C7q;
                            if (A7q) {
                                h3q();
                            } else {
                                w7q.setArrayVal(Q2q, false, false, true, X7q);
                            }
                        }
                    } else if (e2q.index == K7q && Q2q[K7q] != C7q) {
                        C7q = Q2q[K7q];
                        if (j7q && O7q[C7q] && O7q[C7q].group != G7q) {
                            G7q = O7q[C7q].group;
                            Q2q[M7q] = G7q;
                            w7q.setArrayVal(Q2q, false, false, true, X7q);
                        }
                    }
                },
                onItemTap: function F2q(v2q) {
                    if (v2q.index == K7q) {
                        l7q[v2q.value] = O7q[v2q.value].text;
                        if (Y7q && !P7q && v2q.selected) {
                            return false;
                        }
                    }
                },
                onClose: function H2q() {
                    if (b7q && x7q.data.remoteFilter && k7q) {
                        w7q.refresh();
                    }
                },
                onDestroy: function D2q() {
                    if (w7q._dummyInput) {
                        w7q._dummyInput.remove();
                    }
                    S7q.removeClass('mbsc-sel-hdn').removeAttr('tabindex');
                }
            };
        };
        (function() {
            var B2q = ['ng-repeat', 'ng:repeat', 'data-ng-repeat', 'x-ng-repeat', 'ng_repeat'],
                l2q = Z2K.$;
            J2K.module('mobiscroll-select', []).directive('mobiscrollSelectOption', function() {
                return {
                    link: function z2q(y2q, X2q, r2q) {
                        var T2q = l2q(X2q[0]).closest('select');
                        y2q.$watch(r2q.ngValue, function() {
                            y2q.$emit('mbscSelectRefresh', T2q);
                        });
                        y2q.$on('$destroy', function() {
                            y2q.$emit('mbscSelectRefresh', T2q);
                        });
                    }
                };
            }).directive('mobiscrollSelect', ['$parse', function(a2q) {
                var p2q = Z2K.ng.getDDO(a2q, 'mobiscrollSelect', {
                    preset: 'select'
                });
                p2q.link = undefined;
                p2q.compile = function(u2q) {
                    var I2q, t2q, E2q = l2q(u2q[0]);
                    E2q.find('option').each(function() {
                        for (t2q = 0; t2q < B2q.length; t2q++) {
                            if (l2q(this).attr(B2q[t2q])) {
                                l2q(this).attr('mobiscroll-select-option', '');
                                I2q = true;
                                return false;
                            }
                        }
                    });
                    return function(U2q, h0q, o2q, N0q) {
                        var L0q, c2q, s0q = l2q(h0q[0]),
                            q0q = Z2K.ng.getOpt(U2q, o2q, 'mobiscrollSelect', N0q);
                        J2K.extend(q0q, {
                            preset: 'select'
                        });
                        if (o2q.mobiscrollData) {
                            J2K.extend(q0q, {
                                data: U2q.$eval(o2q.mobiscrollData) || []
                            });
                            U2q.$watchCollection(o2q.mobiscrollData, function() {
                                if (c2q) {
                                    c2q.refresh(U2q.$eval(o2q.mobiscrollData));
                                }
                            });
                        }
                        Z2K.ng.addWatch(a2q, U2q, N0q, s0q, o2q, 'mobiscrollSelect');
                        if (I2q) {
                            U2q.$on('mbscSelectRefresh', function(i0q, n0q) {
                                if (s0q[0] == n0q[0]) {
                                    clearTimeout(L0q);
                                    L0q = setTimeout(function() {
                                        c2q = new Z2K.classes.Scroller(h0q[0], q0q);
                                        Z2K.ng.render(s0q, N0q ? N0q.$modelValue : a2q(o2q.mobiscrollSelect)(U2q));
                                        if (o2q.mobiscrollInstance) {
                                            a2q(o2q.mobiscrollInstance).assign(U2q, c2q);
                                        }
                                    }, 10);
                                }
                            });
                        } else {
                            c2q = new Z2K.classes.Scroller(h0q[0], q0q);
                            if (o2q.mobiscrollInstance) {
                                a2q(o2q.mobiscrollInstance).assign(U2q, c2q);
                            }
                        }
                    };
                };
                return p2q;
            }]);
        }());
        var Y2K = Z2K.$;
        var R1K = {
            autostart: false,
            step: 1,
            useShortLabels: false,
            labels: ['Years', 'Months', 'Days', 'Hours', 'Minutes', 'Seconds', ''],
            labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Reset',
            lapText: 'Lap',
            hideText: 'Hide'
        };
        Z2K.presetShort('timer');
        Z2K.presets.scroller.timer = function(x0q) {
            function z0q(p0q) {
                return new Date(p0q.getUTCFullYear(), p0q.getUTCMonth(), p0q.getUTCDate(), p0q.getUTCHours(), p0q.getUTCMinutes(), p0q.getUTCSeconds(), p0q.getUTCMilliseconds());
            }

            function a0q(q4q) {
                var t0q = {};
                if (F0q && C0q[J0q].index > C0q.days.index) {
                    var o0q, u0q, N4q, U0q, c0q = new Date(),
                        I0q = M0q ? c0q : j0q,
                        E0q = M0q ? j0q : c0q;
                    E0q = z0q(E0q);
                    I0q = z0q(I0q);
                    t0q.years = I0q.getFullYear() - E0q.getFullYear();
                    t0q.months = I0q.getMonth() - E0q.getMonth();
                    t0q.days = I0q.getDate() - E0q.getDate();
                    t0q.hours = I0q.getHours() - E0q.getHours();
                    t0q.minutes = I0q.getMinutes() - E0q.getMinutes();
                    t0q.seconds = I0q.getSeconds() - E0q.getSeconds();
                    t0q.fract = (I0q.getMilliseconds() - E0q.getMilliseconds()) / 10;
                    for (o0q = Z0q.length; o0q > 0; o0q--) {
                        u0q = Z0q[o0q - 1];
                        N4q = C0q[u0q];
                        U0q = Z0q[Y2K.inArray(u0q, Z0q) - 1];
                        if (C0q[U0q] && t0q[u0q] < 0) {
                            t0q[U0q]--;
                            t0q[u0q] += U0q == 'months' ? 32 - new Date(I0q.getFullYear(), I0q.getMonth(), 32).getDate() : N4q.until + 1;
                        }
                    }
                    if (J0q == 'months') {
                        t0q.months += t0q.years * 12;
                        delete t0q.years;
                    }
                } else {
                    Y2K(Z0q).each(function(h4q, s4q) {
                        if (C0q[s4q].index <= C0q[J0q].index) {
                            t0q[s4q] = Math.floor(q4q / C0q[s4q].limit);
                            q4q -= t0q[s4q] * C0q[s4q].limit;
                        }
                    });
                }
                return t0q;
            }

            function r0q(i4q) {
                var x4q = 1,
                    L4q = C0q[i4q],
                    n4q = L4q.wheel,
                    w4q = L4q.prefix,
                    O4q = 0,
                    S4q = L4q.until,
                    K4q = C0q[Z0q[Y2K.inArray(i4q, Z0q) - 1]];
                if (L4q.index <= C0q[J0q].index && (!K4q || K4q.limit > b0q)) {
                    if (!V0q[i4q]) {
                        B0q[0].push(n4q);
                    }
                    V0q[i4q] = 1;
                    n4q.data = [];
                    n4q.label = L4q.label || '';
                    n4q.cssClass = 'mbsc-timer-whl-' + i4q;
                    if (b0q >= L4q.limit) {
                        x4q = Math.max(Math.round(b0q / L4q.limit), 1);
                        f0q = x4q * L4q.limit;
                    }
                    if (i4q == J0q) {
                        n4q.min = 0;
                        n4q.data = function(C4q) {
                            return {
                                value: C4q,
                                display: T0q(C4q, w4q, L4q.label)
                            };
                        };
                        n4q.getIndex = function(Z4q) {
                            return Z4q;
                        };
                    } else {
                        for (g0q = O4q; g0q <= S4q; g0q += x4q) {
                            n4q.data.push({
                                value: g0q,
                                display: T0q(g0q, w4q, L4q.label)
                            });
                        }
                    }
                }
            }

            function T0q(M4q, j4q, J4q) {
                return (j4q || '') + (M4q < 10 ? '0' : '') + M4q + '<span class="mbsc-timer-lbl">' + J4q + '</span>';
            }

            function Y0q(k4q) {
                var G4q = [],
                    P4q, V4q = a0q(k4q);
                Y2K(Z0q).each(function(m4q, Y4q) {
                    if (V0q[Y4q]) {
                        P4q = Math.max(Math.round(b0q / C0q[Y4q].limit), 1);
                        G4q.push(Math.round(V4q[Y4q] / P4q) * P4q);
                    }
                });
                return G4q;
            }

            function l0q(A4q) {
                if (F0q) {
                    O0q = j0q - new Date();
                    if (O0q < 0) {
                        O0q *= -1;
                        M0q = true;
                    } else {
                        M0q = false;
                    }
                    K0q = 0;
                    A0q = true;
                } else if (j0q !== undefined) {
                    A0q = false;
                    O0q = j0q * 1000;
                    M0q = w0q.mode != 'countdown';
                    if (A4q) {
                        K0q = 0;
                    }
                } else {
                    O0q = 0;
                    M0q = w0q.mode != 'countdown';
                    A0q = M0q;
                    if (A4q) {
                        K0q = 0;
                    }
                }
            }

            function D0q() {
                if (G0q) {
                    Y2K('.mbsc-fr-w', S0q).addClass('mbsc-timer-running mbsc-timer-locked');
                    Y2K('.mbsc-timer-btn-toggle-c > div', S0q).text(w0q.stopText);
                    if (x0q.buttons.start.icon) {
                        Y2K('.mbsc-timer-btn-toggle-c > div', S0q).removeClass('mbsc-ic-' + x0q.buttons.start.icon);
                    }
                    if (x0q.buttons.stop.icon) {
                        Y2K('.mbsc-timer-btn-toggle-c > div', S0q).addClass('mbsc-ic-' + x0q.buttons.stop.icon);
                    }
                    if (w0q.mode == 'stopwatch') {
                        Y2K('.mbsc-timer-btn-resetlap-c > div', S0q).text(w0q.lapText);
                        if (x0q.buttons.reset.icon) {
                            Y2K('.mbsc-timer-btn-resetlap-c > div', S0q).removeClass('mbsc-ic-' + x0q.buttons.reset.icon);
                        }
                        if (x0q.buttons.lap.icon) {
                            Y2K('.mbsc-timer-btn-resetlap-c > div', S0q).addClass('mbsc-ic-' + x0q.buttons.lap.icon);
                        }
                    }
                } else {
                    Y2K('.mbsc-fr-w', S0q).removeClass('mbsc-timer-running');
                    Y2K('.mbsc-timer-btn-toggle-c > div', S0q).text(w0q.startText);
                    if (x0q.buttons.start.icon) {
                        Y2K('.mbsc-timer-btn-toggle-c > div', S0q).addClass('mbsc-ic-' + x0q.buttons.start.icon);
                    }
                    if (x0q.buttons.stop.icon) {
                        Y2K('.mbsc-timer-btn-toggle-c > div', S0q).removeClass('mbsc-ic-' + x0q.buttons.stop.icon);
                    }
                    if (w0q.mode == 'stopwatch') {
                        Y2K('.mbsc-timer-btn-resetlap-c > div', S0q).text(w0q.resetText);
                        if (x0q.buttons.reset.icon) {
                            Y2K('.mbsc-timer-btn-resetlap-c > div', S0q).addClass('mbsc-ic-' + x0q.buttons.reset.icon);
                        }
                        if (x0q.buttons.lap.icon) {
                            Y2K('.mbsc-timer-btn-resetlap-c > div', S0q).removeClass('mbsc-ic-' + x0q.buttons.lap.icon);
                        }
                    }
                }
            }
            var g0q, v0q, f0q, m0q, d0q, W0q, O0q, K0q, M0q, S0q, X0q, y0q = Y2K.extend({}, x0q.settings),
                w0q = Y2K.extend(x0q.settings, R1K, y0q),
                P0q = w0q.useShortLabels ? w0q.labelsShort : w0q.labels,
                H0q = ['toggle', 'resetlap'],
                Z0q = ['years', 'months', 'days', 'hours', 'minutes', 'seconds', 'fract'],
                C0q = {
                    'years': {
                        index: 6,
                        until: 10,
                        limit: 1000 * 60 * 60 * 24 * 365,
                        label: P0q[0],
                        wheel: {}
                    },
                    'months': {
                        index: 5,
                        until: 11,
                        limit: 1000 * 60 * 60 * 24 * 30,
                        label: P0q[1],
                        wheel: {}
                    },
                    'days': {
                        index: 4,
                        until: 31,
                        limit: 1000 * 60 * 60 * 24,
                        label: P0q[2],
                        wheel: {}
                    },
                    'hours': {
                        index: 3,
                        until: 23,
                        limit: 1000 * 60 * 60,
                        label: P0q[3],
                        wheel: {}
                    },
                    'minutes': {
                        index: 2,
                        until: 59,
                        limit: 1000 * 60,
                        label: P0q[4],
                        wheel: {}
                    },
                    'seconds': {
                        index: 1,
                        until: 59,
                        limit: 1000,
                        label: P0q[5],
                        wheel: {}
                    },
                    'fract': {
                        index: 0,
                        until: 99,
                        limit: 10,
                        label: P0q[6],
                        prefix: '.',
                        wheel: {}
                    }
                },
                V0q = {},
                Q0q = [],
                e0q = 0,
                G0q = false,
                k0q = true,
                A0q = false,
                b0q = Math.max(10, w0q.step * 1000),
                J0q = w0q.maxWheel,
                R0q = w0q.mode == 'stopwatch' || F0q,
                j0q = w0q.targetTime,
                F0q = j0q && j0q.getTime !== undefined,
                B0q = [
                    []
                ];
            x0q.start = function() {
                if (k0q) {
                    x0q.reset();
                }
                if (!G0q) {
                    l0q();
                    if (!A0q && K0q >= O0q) {
                        return;
                    }
                    G0q = true;
                    k0q = false;
                    d0q = new Date();
                    m0q = K0q;
                    w0q.readonly = true;
                    x0q.setVal(Y0q(M0q ? K0q : O0q - K0q), true, true, false, 100);
                    v0q = setInterval(function() {
                        K0q = new Date() - d0q + m0q;
                        x0q.setVal(Y0q(M0q ? K0q : O0q - K0q), true, true, false, Math.min(100, f0q - 10));
                        if (!A0q && K0q + f0q >= O0q) {
                            clearInterval(v0q);
                            setTimeout(function() {
                                x0q.stop();
                                K0q = O0q;
                                x0q.setVal(Y0q(M0q ? K0q : 0), true, true, false, 100);
                                x0q.trigger('onFinish', {
                                    time: O0q
                                });
                                k0q = true;
                            }, O0q - K0q);
                        }
                    }, f0q);
                    D0q();
                    x0q.trigger('onStart');
                }
            };
            x0q.stop = function() {
                if (G0q) {
                    G0q = false;
                    clearInterval(v0q);
                    K0q = new Date() - d0q + m0q;
                    D0q();
                    x0q.trigger('onStop', {
                        ellapsed: K0q
                    });
                }
            };
            x0q.toggle = function() {
                if (G0q) {
                    x0q.stop();
                } else {
                    x0q.start();
                }
            };
            x0q.reset = function() {
                x0q.stop();
                K0q = 0;
                Q0q = [];
                e0q = 0;
                x0q.setVal(Y0q(M0q ? 0 : O0q), true, true, false, 100);
                x0q.settings.readonly = R0q;
                k0q = true;
                if (!R0q) {
                    Y2K('.mbsc-fr-w', S0q).removeClass('mbsc-timer-locked');
                }
                x0q.trigger('onReset');
            };
            x0q.lap = function() {
                if (G0q) {
                    W0q = new Date() - d0q + m0q;
                    X0q = W0q - e0q;
                    e0q = W0q;
                    Q0q.push(W0q);
                    x0q.trigger('onLap', {
                        ellapsed: W0q,
                        lap: X0q,
                        laps: Q0q
                    });
                }
            };
            x0q.resetlap = function() {
                if (G0q && w0q.mode == 'stopwatch') {
                    x0q.lap();
                } else {
                    x0q.reset();
                }
            };
            x0q.getTime = function() {
                return O0q;
            };
            x0q.setTime = function(d4q) {
                j0q = d4q / 1000;
                O0q = d4q;
            };
            x0q.getEllapsedTime = function() {
                return G0q ? new Date() - d0q + m0q : 0;
            };
            x0q.setEllapsedTime = function(f4q, W4q) {
                if (!k0q) {
                    m0q = K0q = f4q;
                    d0q = new Date();
                    x0q.setVal(Y0q(M0q ? K0q : O0q - K0q), true, W4q, false, 100);
                }
            };
            l0q(true);
            if (!J0q && !O0q) {
                J0q = 'minutes';
            }
            if (w0q.display !== 'inline') {
                H0q.push('hide');
            }
            if (!J0q) {
                Y2K(Z0q).each(function(g4q, b4q) {
                    if (!J0q && O0q >= C0q[b4q].limit) {
                        J0q = b4q;
                        return false;
                    }
                });
            }
            Y2K(Z0q).each(function(Q4q, R4q) {
                r0q(R4q);
            });
            f0q = Math.max(87, f0q);
            if (w0q.autostart) {
                setTimeout(function() {
                    x0q.start();
                }, 0);
            }
            x0q.handlers.toggle = x0q.toggle;
            x0q.handlers.start = x0q.start;
            x0q.handlers.stop = x0q.stop;
            x0q.handlers.resetlap = x0q.resetlap;
            x0q.handlers.reset = x0q.reset;
            x0q.handlers.lap = x0q.lap;
            x0q.buttons.toggle = {
                parentClass: 'mbsc-timer-btn-toggle-c',
                text: w0q.startText,
                icon: w0q.startIcon,
                handler: 'toggle'
            };
            x0q.buttons.start = {
                text: w0q.startText,
                icon: w0q.startIcon,
                handler: 'start'
            };
            x0q.buttons.stop = {
                text: w0q.stopText,
                icon: w0q.stopIcon,
                handler: 'stop'
            };
            x0q.buttons.reset = {
                text: w0q.resetText,
                icon: w0q.resetIcon,
                handler: 'reset'
            };
            x0q.buttons.lap = {
                text: w0q.lapText,
                icon: w0q.lapIcon,
                handler: 'lap'
            };
            x0q.buttons.resetlap = {
                parentClass: 'mbsc-timer-btn-resetlap-c',
                text: w0q.resetText,
                icon: w0q.resetIcon,
                handler: 'resetlap'
            };
            x0q.buttons.hide = {
                parentClass: 'mbsc-timer-btn-hide-c',
                text: w0q.hideText,
                icon: w0q.closeIcon,
                handler: 'cancel'
            };
            return {
                wheels: B0q,
                headerText: false,
                readonly: R0q,
                buttons: H0q,
                mode: 'countdown',
                compClass: 'mbsc-timer',
                parseValue: function e4q() {
                    return Y0q(M0q ? 0 : O0q);
                },
                formatValue: function F4q(D4q) {
                    var H4q = '',
                        v4q = 0;
                    Y2K(Z0q).each(function(B4q, l4q) {
                        if (l4q == 'fract') {
                            return;
                        }
                        if (V0q[l4q]) {
                            H4q += D4q[v4q] + (l4q == 'seconds' && V0q.fract ? '.' + D4q[v4q + 1] : '') + ' ' + P0q[B4q] + ' ';
                            v4q++;
                        }
                    });
                    return H4q;
                },
                validate: function z4q(T4q) {
                    var X4q = T4q.values,
                        r4q = T4q.index,
                        y4q = 0;
                    if (k0q && r4q !== undefined) {
                        j0q = 0;
                        Y2K(Z0q).each(function(p4q, a4q) {
                            if (V0q[a4q]) {
                                j0q += C0q[a4q].limit * X4q[y4q];
                                y4q++;
                            }
                        });
                        j0q /= 1000;
                        l0q(true);
                    }
                },
                onBeforeShow: function t4q() {
                    w0q.showLabel = true;
                },
                onMarkupReady: function I4q(E4q) {
                    S0q = Y2K(E4q.target);
                    D0q();
                    if (R0q) {
                        Y2K('.mbsc-fr-w', S0q).addClass('mbsc-timer-locked');
                    }
                },
                onPosition: function u4q(o4q) {
                    Y2K('.mbsc-fr-w', o4q.target).css('min-width', 0).css('min-width', Y2K('.mbsc-fr-btn-cont', o4q.target)[0].offsetWidth);
                },
                onDestroy: function U4q() {
                    clearInterval(v0q);
                }
            };
        };
        (function() {
            function N5q(x5q, w5q, K5q, O5q, S5q, i5q) {
                var n5q = c4q[K5q[0].id];
                if (n5q) {
                    if (i5q) {
                        i5q.$setViewValue(n5q.getEllapsedTime());
                    } else {
                        x5q(S5q[w5q]).assign(O5q, n5q.getEllapsedTime());
                    }
                }
            }

            function s5q(Z5q, M5q) {
                var C5q = c4q[Z5q[0].id];
                if (C5q) {
                    C5q.setEllapsedTime(M5q, false);
                    q5q(Z5q[0]).val(C5q._value);
                }
            }

            function h5q(J5q) {
                var j5q = c4q[J5q[0].id];
                if (j5q) {
                    return j5q.getEllapsedTime();
                }
            }
            var q5q = Z2K.$,
                c4q = Z2K.instances;
            J2K.module('mobiscroll-timer', []).directive('mobiscrollTimer', ['$parse', function(L5q) {
                return Z2K.ng.getDDO(L5q, 'mobiscrollTimer', {
                    preset: 'timer'
                }, s5q, N5q, h5q);
            }]);
        }());
        var e2K = Z2K.$;
        var e1K = {
            wheelOrder: 'hhiiss',
            useShortLabels: false,
            min: 0,
            max: Infinity,
            labels: ['Years', 'Months', 'Days', 'Hours', 'Minutes', 'Seconds'],
            labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs']
        };
        Z2K.presetShort('timespan');
        Z2K.presets.scroller.timespan = function(Y5q) {
            function b5q(X5q) {
                var T5q = {};
                e2K(g5q).each(function(a5q, r5q) {
                    T5q[r5q] = m5q[r5q] ? Math.floor(X5q / P5q[r5q].limit) : 0;
                    X5q -= T5q[r5q] * P5q[r5q].limit;
                });
                return T5q;
            }

            function y5q(I5q) {
                var u5q = false,
                    E5q = e5q[m5q[I5q] - 1] || 1,
                    t5q = P5q[I5q],
                    o5q = t5q.label,
                    p5q = t5q.wheel;
                p5q.data = [];
                p5q.label = t5q.label;
                if (R5q.match(new RegExp(t5q.re + t5q.re, 'i'))) {
                    u5q = true;
                }
                if (I5q == d5q) {
                    p5q.min = W5q[I5q];
                    p5q.max = f5q[I5q];
                    p5q.data = function(U5q) {
                        return {
                            value: U5q * E5q,
                            display: D5q(U5q * E5q, u5q, o5q)
                        };
                    };
                    p5q.getIndex = function(c5q) {
                        return Math.round(c5q / E5q);
                    };
                } else {
                    for (A5q = 0; A5q <= t5q.until; A5q += E5q) {
                        p5q.data.push({
                            value: A5q,
                            display: D5q(A5q, u5q, o5q)
                        });
                    }
                }
            }

            function D5q(q6q, N6q, s6q) {
                return (q6q < 10 && N6q ? '0' : '') + q6q + '<span class="mbsc-ts-lbl">' + s6q + '</span>';
            }

            function B5q(L6q) {
                var n6q = 0,
                    h6q = 0;
                e2K.each(V5q, function(i6q, x6q) {
                    if (!isNaN(+L6q[n6q])) {
                        h6q += P5q[x6q.v].limit * L6q[i6q];
                    }
                });
                return h6q;
            }

            function z5q(K6q, w6q) {
                return Math.floor(K6q / w6q) * w6q;
            }
            var A5q, Q5q, l5q, W5q, f5q, v5q = e2K.extend({}, Y5q.settings),
                G5q = e2K.extend(Y5q.settings, e1K, v5q),
                R5q = G5q.wheelOrder,
                k5q = G5q.useShortLabels ? G5q.labelsShort : G5q.labels,
                g5q = ['years', 'months', 'days', 'hours', 'minutes', 'seconds'],
                P5q = {
                    'years': {
                        ord: 0,
                        index: 6,
                        until: 10,
                        limit: 1000 * 60 * 60 * 24 * 365,
                        label: k5q[0],
                        re: 'y',
                        wheel: {}
                    },
                    'months': {
                        ord: 1,
                        index: 5,
                        until: 11,
                        limit: 1000 * 60 * 60 * 24 * 30,
                        label: k5q[1],
                        re: 'm',
                        wheel: {}
                    },
                    'days': {
                        ord: 2,
                        index: 4,
                        until: 31,
                        limit: 1000 * 60 * 60 * 24,
                        label: k5q[2],
                        re: 'd',
                        wheel: {}
                    },
                    'hours': {
                        ord: 3,
                        index: 3,
                        until: 23,
                        limit: 1000 * 60 * 60,
                        label: k5q[3],
                        re: 'h',
                        wheel: {}
                    },
                    'minutes': {
                        ord: 4,
                        index: 2,
                        until: 59,
                        limit: 1000 * 60,
                        label: k5q[4],
                        re: 'i',
                        wheel: {}
                    },
                    'seconds': {
                        ord: 5,
                        index: 1,
                        until: 59,
                        limit: 1000,
                        label: k5q[5],
                        re: 's',
                        wheel: {}
                    }
                },
                V5q = [],
                e5q = G5q.steps || [],
                m5q = {},
                d5q = 'seconds',
                H5q = G5q.defaultValue || Math.max(G5q.min, Math.min(0, G5q.max)),
                F5q = [
                    []
                ];
            e2K(g5q).each(function(S6q, O6q) {
                Q5q = R5q.search(new RegExp(P5q[O6q].re, 'i'));
                if (Q5q > -1) {
                    V5q.push({
                        o: Q5q,
                        v: O6q
                    });
                    if (P5q[O6q].index > P5q[d5q].index) {
                        d5q = O6q;
                    }
                }
            });
            V5q.sort(function(C6q, Z6q) {
                return C6q.o > Z6q.o ? 1 : -1;
            });
            e2K.each(V5q, function(j6q, M6q) {
                m5q[M6q.v] = j6q + 1;
                F5q[0].push(P5q[M6q.v].wheel);
            });
            W5q = b5q(G5q.min);
            f5q = b5q(G5q.max);
            e2K.each(V5q, function(G6q, J6q) {
                y5q(J6q.v);
            });
            Y5q.getVal = function(P6q, V6q) {
                return V6q ? Y5q._getVal(P6q) : Y5q._hasValue || P6q ? B5q(Y5q.getArrayVal(P6q)) : null;
            };
            return {
                showLabel: true,
                wheels: F5q,
                compClass: 'mbsc-ts',
                parseValue: function k6q(m6q) {
                    var Y6q = [],
                        A6q;
                    if (Z2K.util.isNumeric(m6q) || !m6q) {
                        l5q = b5q(m6q || H5q);
                        e2K.each(V5q, function(f6q, d6q) {
                            Y6q.push(l5q[d6q.v]);
                        });
                    } else {
                        e2K.each(V5q, function(b6q, W6q) {
                            A6q = new RegExp('(\\d+)\\s?(' + G5q.labels[P5q[W6q.v].ord] + '|' + G5q.labelsShort[P5q[W6q.v].ord] + ')', 'gi').exec(m6q);
                            Y6q.push(A6q ? A6q[1] : 0);
                        });
                    }
                    e2K(Y6q).each(function(g6q, R6q) {
                        Y6q[g6q] = z5q(R6q, e5q[g6q] || 1);
                    });
                    return Y6q;
                },
                formatValue: function Q6q(F6q) {
                    var e6q = '';
                    e2K.each(V5q, function(v6q, H6q) {
                        e6q += +F6q[v6q] ? F6q[v6q] + ' ' + P5q[H6q.v].label + ' ' : '';
                    });
                    return e6q ? e6q.replace(/\s+$/g, '') : 0;
                },
                validate: function D6q(t6q) {
                    var a6q, l6q, B6q, z6q, r6q = t6q.values,
                        p6q = t6q.direction,
                        X6q = [],
                        T6q = true,
                        y6q = true;
                    e2K(g5q).each(function(E6q, I6q) {
                        if (m5q[I6q] !== undefined) {
                            B6q = m5q[I6q] - 1;
                            X6q[B6q] = [];
                            z6q = {};
                            if (I6q != d5q) {
                                if (T6q) {
                                    for (l6q = f5q[I6q] + 1; l6q <= P5q[I6q].until; l6q++) {
                                        z6q[l6q] = true;
                                    }
                                }
                                if (y6q) {
                                    for (l6q = 0; l6q < W5q[I6q]; l6q++) {
                                        z6q[l6q] = true;
                                    }
                                }
                            }
                            r6q[B6q] = Y5q.getValidValue(B6q, r6q[B6q], p6q, z6q);
                            a6q = b5q(B5q(r6q));
                            T6q = T6q && a6q[I6q] == f5q[I6q];
                            y6q = y6q && a6q[I6q] == W5q[I6q];
                            e2K.each(z6q, function(u6q) {
                                X6q[B6q].push(u6q);
                            });
                        }
                    });
                    return {
                        disabled: X6q
                    };
                }
            };
        };
        J2K.module('mobiscroll-timespan', []).directive('mobiscrollTimespan', ['$parse', function(o6q) {
            return Z2K.ng.getDDO(o6q, 'mobiscrollTimespan', {
                preset: 'timespan'
            });
        }]);
        Z2K.presets.scroller.treelist = Z2K.presets.scroller.list;
        Z2K.presetShort('list');
        Z2K.presetShort('treelist');
        (function() {
            var c6q = Z2K.$,
                U6q = 'mobiscrollList',
                q1q = ['ng-repeat', 'ng:repeat', 'data-ng-repeat', 'x-ng-repeat', 'ng_repeat'];
            J2K.module('mobiscroll-list', []).directive('mobiscrollRepeatRender', function() {
                return function(N1q) {
                    N1q.$emit('mbscRepeatRender');
                };
            }).directive(U6q, ['$parse', function(s1q) {
                var h1q = Z2K.ng.getDDO(s1q, U6q, {
                    preset: 'list'
                });
                h1q.link = undefined;
                h1q.compile = function(x1q) {
                    var n1q, i1q = c6q(x1q[0]),
                        L1q;
                    i1q.find('li').each(function() {
                        for (L1q = 0; L1q < q1q.length; L1q++) {
                            if (c6q(this).attr(q1q[L1q])) {
                                n1q = true;
                                return false;
                            }
                        }
                    });
                    if (n1q) {
                        i1q.children().attr('mobiscroll-repeat-render', '');
                    }
                    return function(K1q, C1q, w1q, M1q) {
                        var O1q, j1q, Z1q = c6q(C1q[0]),
                            S1q = Z2K.ng.getOpt(K1q, w1q, U6q, M1q);
                        J2K.extend(S1q, {
                            preset: 'treelist'
                        });
                        Z2K.ng.addWatch(s1q, K1q, M1q, Z1q, w1q, U6q);
                        if (n1q) {
                            K1q.$on('mbscRepeatRender', function() {
                                clearTimeout(j1q);
                                j1q = setTimeout(function() {
                                    O1q = new Z2K.classes.Scroller(C1q[0], S1q);
                                    if (w1q.mobiscrollInstance) {
                                        s1q(w1q.mobiscrollInstance).assign(K1q, O1q);
                                    }
                                }, 1);
                            });
                        } else if (Z1q.children().length) {
                            O1q = new Z2K.classes.Scroller(C1q[0], S1q);
                            if (w1q.mobiscrollInstance) {
                                s1q(w1q.mobiscrollInstance).assign(K1q, O1q);
                            }
                        }
                    };
                };
                return h1q;
            }]);
        }());
        J2K.module('mobiscroll-widget', []).directive('mobiscrollWidget', ['$parse', function(J1q) {
            return Z2K.ng.getDDO(J1q, 'mobiscrollWidget', {
                component: 'Widget'
            });
        }]);
        Z2K.i18n.ca = {
            setText: 'Acceptar',
            cancelText: 'Cancel·lar',
            clearText: 'Esborrar',
            selectedText: '{count} seleccionat',
            selectedPluralText: '{count} seleccionats',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Diumenge', 'Dilluns', 'Dimarts', 'Dimecres', 'Dijous', 'Divendres', 'Dissabte'],
            dayNamesShort: ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'],
            dayNamesMin: ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'],
            dayText: 'Dia',
            hourText: 'Hores',
            minuteText: 'Minuts',
            monthNames: ['Gener', 'Febrer', 'Mar&ccedil;', 'Abril', 'Maig', 'Juny', 'Juliol', 'Agost', 'Setembre', 'Octubre', 'Novembre', 'Desembre'],
            monthNamesShort: ['Gen', 'Feb', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Des'],
            monthText: 'Mes',
            secText: 'Segons',
            timeFormat: 'HH:ii',
            yearText: 'Any',
            nowText: 'Ara',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Avui',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Temps',
            calendarText: 'Calendari',
            closeText: 'Tancar',
            fromText: 'Iniciar',
            toText: 'Final',
            wholeText: 'Sencer',
            fractionText: 'Fracció',
            unitText: 'Unitat',
            labels: ['Anys', 'Mesos', 'Dies', 'Hores', 'Minuts', 'Segons', ''],
            labelsShort: ['Anys', 'Mesos', 'Dies', 'Hrs', 'Mins', 'Secs', ''],
            startText: 'Iniciar',
            stopText: 'Aturar',
            resetText: 'Reiniciar',
            lapText: 'Volta',
            hideText: 'Amagar',
            backText: 'Enrere',
            undoText: 'Desfés',
            offText: 'No',
            onText: 'Si'
        };
        Z2K.i18n.cs = {
            setText: 'Zadej',
            cancelText: 'Storno',
            clearText: 'Vymazat',
            selectedText: 'Označený: {count}',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'],
            dayNamesShort: ['Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'],
            dayNamesMin: ['N', 'P', 'Ú', 'S', 'Č', 'P', 'S'],
            dayText: 'Den',
            hourText: 'Hodiny',
            minuteText: 'Minuty',
            monthNames: ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'],
            monthNamesShort: ['Led', 'Úno', 'Bře', 'Dub', 'Kvě', 'Čer', 'Čvc', 'Spr', 'Zář', 'Říj', 'Lis', 'Pro'],
            monthText: 'Měsíc',
            secText: 'Sekundy',
            timeFormat: 'HH:ii',
            yearText: 'Rok',
            nowText: 'Teď',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Dnes',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Čas',
            calendarText: 'Kalendář',
            closeText: 'Zavřít',
            fromText: 'Začátek',
            toText: 'Konec',
            wholeText: 'Celý',
            fractionText: 'Část',
            unitText: 'Jednotka',
            labels: ['Roky', 'Měsíce', 'Dny', 'Hodiny', 'Minuty', 'Sekundy', ''],
            labelsShort: ['Rok', 'Měs', 'Dny', 'Hod', 'Min', 'Sec', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Resetovat',
            lapText: 'Etapa',
            hideText: 'Schovat',
            backText: 'Zpět',
            undoText: 'Zpět',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.da = {
            setText: 'Sæt',
            cancelText: 'Annuller',
            clearText: 'Ryd',
            selectedText: '{count} valgt',
            selectedPluralText: '{count} valgt',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
            dayNamesShort: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
            dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
            dayText: 'Dag',
            hourText: 'Timer',
            minuteText: 'Minutter',
            monthNames: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Måned',
            secText: 'Sekunder',
            amText: 'am',
            pmText: 'pm',
            timeFormat: 'HH.ii',
            yearText: 'År',
            nowText: 'Nu',
            todayText: 'I dag',
            firstDay: 1,
            dateText: 'Dato',
            timeText: 'Tid',
            calendarText: 'Kalender',
            closeText: 'Luk',
            fromText: 'Start',
            toText: 'Slut',
            wholeText: 'Hele',
            fractionText: 'Dele',
            unitText: 'Enhed',
            labels: ['År', 'Måneder', 'Dage', 'Timer', 'Minutter', 'Sekunder', ''],
            labelsShort: ['År', 'Mdr', 'Dg', 'Timer', 'Min', 'Sek', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Nulstil',
            lapText: 'Omgang',
            hideText: 'Skjul',
            offText: 'Fra',
            onText: 'Til',
            backText: 'Tilbage',
            undoText: 'Fortryd'
        };
        Z2K.i18n['en-GB'] = Z2K.i18n['en-UK'] = {
            dateFormat: 'dd/mm/yy',
            timeFormat: 'HH:ii'
        };
        Z2K.i18n.es = {
            setText: 'Aceptar',
            cancelText: 'Cancelar',
            clearText: 'Borrar',
            selectedText: '{count} seleccionado',
            selectedPluralText: '{count} seleccionados',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Domingo', 'Lunes', 'Martes', 'Mi&#xE9;rcoles', 'Jueves', 'Viernes', 'S&#xE1;bado'],
            dayNamesShort: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'S&#xE1;'],
            dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
            dayText: 'D&#237;a',
            hourText: 'Horas',
            minuteText: 'Minutos',
            monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
            monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
            monthText: 'Mes',
            secText: 'Segundos',
            timeFormat: 'HH:ii',
            yearText: 'A&ntilde;o',
            nowText: 'Ahora',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Hoy',
            firstDay: 1,
            dateText: 'Fecha',
            timeText: 'Tiempo',
            calendarText: 'Calendario',
            closeText: 'Cerrar',
            fromText: 'Iniciar',
            toText: 'Final',
            wholeText: 'Entero',
            fractionText: 'Fracción',
            unitText: 'Unidad',
            labels: ['Años', 'Meses', 'Días', 'Horas', 'Minutos', 'Segundos', ''],
            labelsShort: ['Año', 'Mes', 'Día', 'Hora', 'Min', 'Seg', ''],
            startText: 'Iniciar',
            stopText: 'Deténgase',
            resetText: 'Reinicializar',
            lapText: 'Lap',
            hideText: 'Esconder',
            backText: 'Atrás',
            undoText: 'Deshacer',
            offText: 'No',
            onText: 'Sí',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        var g2K = {
            gDaysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
            jDaysInMonth: [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29]
        };
        g2K.jalaliToGregorian = function(f1q, A1q, d1q) {
            f1q = parseInt(f1q);
            A1q = parseInt(A1q);
            d1q = parseInt(d1q);
            var P1q;
            var Y1q = f1q - 979;
            var b1q = A1q - 1;
            var W1q = d1q - 1;
            var m1q = 365 * Y1q + parseInt(Y1q / 33) * 8 + parseInt((Y1q % 33 + 3) / 4);
            for (P1q = 0; P1q < b1q; ++P1q) {
                m1q += g2K.jDaysInMonth[P1q];
            }
            m1q += W1q;
            var G1q = m1q + 79;
            var V1q = 1600 + 400 * parseInt(G1q / 146097);
            G1q = G1q % 146097;
            var k1q = true;
            if (G1q >= 36525) {
                G1q--;
                V1q += 100 * parseInt(G1q / 36524);
                G1q = G1q % 36524;
                if (G1q >= 365) {
                    G1q++;
                } else {
                    k1q = false;
                }
            }
            V1q += 4 * parseInt(G1q / 1461);
            G1q %= 1461;
            if (G1q >= 366) {
                k1q = false;
                G1q--;
                V1q += parseInt(G1q / 365);
                G1q = G1q % 365;
            }
            for (P1q = 0; G1q >= g2K.gDaysInMonth[P1q] + (P1q == 1 && k1q); P1q++) {
                G1q -= g2K.gDaysInMonth[P1q] + (P1q == 1 && k1q);
            }
            var R1q = P1q + 1;
            var g1q = G1q + 1;
            return [V1q, R1q, g1q];
        };
        g2K.checkDate = function(e1q, Q1q, F1q) {
            return !(e1q < 0 || e1q > 32767 || Q1q < 1 || Q1q > 12 || F1q < 1 || F1q > g2K.jDaysInMonth[Q1q - 1] + (Q1q == 12 && (e1q - 979) % 33 % 4 === 0));
        };
        g2K.gregorianToJalali = function(T1q, B1q, z1q) {
            T1q = parseInt(T1q);
            B1q = parseInt(B1q);
            z1q = parseInt(z1q);
            var H1q;
            var D1q = T1q - 1600;
            var y1q = B1q - 1;
            var r1q = z1q - 1;
            var l1q = 365 * D1q + parseInt((D1q + 3) / 4) - parseInt((D1q + 99) / 100) + parseInt((D1q + 399) / 400);
            for (H1q = 0; H1q < y1q; ++H1q) {
                l1q += g2K.gDaysInMonth[H1q];
            }
            if (y1q > 1 && (D1q % 4 === 0 && D1q % 100 !== 0 || D1q % 400 === 0)) {
                ++l1q;
            }
            l1q += r1q;
            var v1q = l1q - 79;
            var a1q = parseInt(v1q / 12053);
            v1q %= 12053;
            var X1q = 979 + 33 * a1q + 4 * parseInt(v1q / 1461);
            v1q %= 1461;
            if (v1q >= 366) {
                X1q += parseInt((v1q - 1) / 365);
                v1q = (v1q - 1) % 365;
            }
            for (H1q = 0; H1q < 11 && v1q >= g2K.jDaysInMonth[H1q]; ++H1q) {
                v1q -= g2K.jDaysInMonth[H1q];
            }
            var t1q = H1q + 1;
            var p1q = v1q + 1;
            return [X1q, t1q, p1q];
        };
        Z2K.i18n.fa = {
            setText: 'تاييد',
            cancelText: 'انصراف',
            clearText: 'واضح ',
            selectedText: '{count} منتخب',
            dateFormat: 'yy/mm/dd',
            dayNames: ['يکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنج‌شنبه', 'جمعه', 'شنبه'],
            dayNamesShort: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
            dayNamesMin: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
            dayText: 'روز',
            hourText: 'ساعت',
            minuteText: 'دقيقه',
            monthNames: ['فروردين', 'ارديبهشت', 'خرداد', 'تير', 'مرداد', 'شهريور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
            monthNamesShort: ['فروردين', 'ارديبهشت', 'خرداد', 'تير', 'مرداد', 'شهريور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
            monthText: 'ماه',
            secText: 'ثانيه',
            timeFormat: 'HH:ii',
            timeWheels: 'iiHH',
            yearText: 'سال',
            nowText: 'اکنون',
            amText: 'ب',
            pmText: 'ص',
            todayText: 'امروز',
            getYear: function I1q(E1q) {
                return g2K.gregorianToJalali(E1q.getFullYear(), E1q.getMonth() + 1, E1q.getDate())[0];
            },
            getMonth: function u1q(o1q) {
                return --g2K.gregorianToJalali(o1q.getFullYear(), o1q.getMonth() + 1, o1q.getDate())[1];
            },
            getDay: function U1q(c1q) {
                return g2K.gregorianToJalali(c1q.getFullYear(), c1q.getMonth() + 1, c1q.getDate())[2];
            },
            getDate: function q8q(h8q, N8q, L8q, n8q, i8q, x8q, w8q) {
                if (N8q < 0) {
                    h8q += Math.floor(N8q / 12);
                    N8q = 12 + N8q % 12;
                }
                if (N8q > 11) {
                    h8q += Math.floor(N8q / 12);
                    N8q = N8q % 12;
                }
                var s8q = g2K.jalaliToGregorian(h8q, +N8q + 1, L8q);
                return new Date(s8q[0], s8q[1] - 1, s8q[2], n8q || 0, i8q || 0, x8q || 0, w8q || 0);
            },
            getMaxDayOfMonth: function K8q(S8q, C8q) {
                var O8q = 31;
                while (g2K.checkDate(S8q, C8q + 1, O8q) === false) {
                    O8q--;
                }
                return O8q;
            },
            firstDay: 6,
            rtl: true,
            dateText: 'تاریخ ',
            timeText: 'زمان ',
            calendarText: 'تقویم',
            closeText: 'نزدیک',
            fromText: 'شروع ',
            toText: 'پایان',
            wholeText: 'تمام',
            fractionText: 'کسر',
            unitText: 'واحد',
            labels: ['سال', 'ماه', 'روز', 'ساعت', 'دقیقه', 'ثانیه', ''],
            labelsShort: ['سال', 'ماه', 'روز', 'ساعت', 'دقیقه', 'ثانیه', ''],
            startText: 'شروع',
            stopText: 'پايان',
            resetText: 'تنظیم مجدد',
            lapText: 'Lap',
            hideText: 'پنهان کردن',
            backText: 'پشت',
            undoText: 'واچیدن'
        };
        Z2K.i18n.fr = {
            setText: 'Terminer',
            cancelText: 'Annuler',
            clearText: 'Effacer',
            selectedText: '{count} sélectionné',
            selectedPluralText: '{count} sélectionnés',
            dateFormat: 'dd/mm/yy',
            dayNames: ['&#68;imanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
            dayNamesShort: ['&#68;im.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'],
            dayNamesMin: ['&#68;', 'L', 'M', 'M', 'J', 'V', 'S'],
            dayText: 'Jour',
            monthText: 'Mois',
            monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
            monthNamesShort: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'],
            hourText: 'Heures',
            minuteText: 'Minutes',
            secText: 'Secondes',
            timeFormat: 'HH:ii',
            yearText: 'Année',
            nowText: 'Maintenant',
            pmText: 'pm',
            amText: 'am',
            todayText: "Aujourd'hui",
            firstDay: 1,
            dateText: 'Date',
            timeText: 'Heure',
            calendarText: 'Calendrier',
            closeText: 'Fermer',
            fromText: 'Démarrer',
            toText: 'Fin',
            wholeText: 'Entier',
            fractionText: 'Fraction',
            unitText: 'Unité',
            labels: ['Ans', 'Mois', 'Jours', 'Heures', 'Minutes', 'Secondes', ''],
            labelsShort: ['Ans', 'Mois', 'Jours', 'Hrs', 'Min', 'Sec', ''],
            startText: 'Démarrer',
            stopText: 'Arrêter',
            resetText: 'Réinitialiser',
            lapText: 'Lap',
            hideText: 'Cachez',
            backText: 'Retour',
            undoText: 'Annuler',
            offText: 'Non',
            onText: 'Oui',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.he = {
            rtl: true,
            setText: 'שמירה',
            cancelText: 'ביטול',
            clearText: 'נקה',
            selectedText: '{count} נבחר',
            selectedPluralText: '{count} נבחרו',
            dateFormat: 'dd/mm/yy',
            dayNames: ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
            dayNamesShort: ["א'", "ב'", "ג'", "ד'", "ה'", "ו'", "ש'"],
            dayNamesMin: ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'],
            dayText: 'יום',
            hourText: 'שעות',
            minuteText: 'דקות',
            monthNames: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'],
            monthNamesShort: ["ינו", "פבר", "מרץ", "אפר", "מאי", "יונ", "יול", "אוג", "ספט", "אוק", "נוב", "דצמ"],
            monthText: 'חודש',
            secText: 'שניות',
            amText: 'am',
            pmText: 'pm',
            timeFormat: 'HH:ii',
            timeWheels: 'iiHH',
            yearText: 'שנה',
            nowText: 'עכשיו',
            firstDay: 0,
            dateText: 'תאריך',
            timeText: 'זמן',
            calendarText: 'תאריכון',
            closeText: 'סגירה',
            todayText: 'היום',
            eventText: 'מִקרֶה',
            eventsText: 'מִקרֶה',
            fromText: 'התחלה',
            toText: 'סיום',
            wholeText: 'כֹּל',
            fractionText: 'שבריר',
            unitText: 'יחידה',
            labels: ['שנים', 'חודשים', 'ימים', 'שעות', 'דקות', 'שניים', ''],
            labelsShort: ['שנים', 'חודשים', 'ימים', 'שעות', 'דקות', 'שניים', ''],
            startText: 'התחל',
            stopText: 'עצור',
            resetText: 'אתחול',
            lapText: 'הקפה',
            hideText: 'הסתר',
            offText: 'כיבוי',
            onText: 'הפעלה',
            backText: 'חזור',
            undoText: 'ביטול פעולה'
        };
        Z2K.i18n.hu = {
            setText: 'OK',
            cancelText: 'Mégse',
            clearText: 'Törlés',
            selectedText: '{count} kiválasztva',
            dateFormat: 'yy.mm.dd.',
            dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
            dayNamesShort: ['Va', 'Hé', 'Ke', 'Sze', 'Csü', 'Pé', 'Szo'],
            dayNamesMin: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Sz'],
            dayText: 'Nap',
            delimiter: '.',
            hourText: 'Óra',
            minuteText: 'Perc',
            monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Hónap',
            secText: 'Másodperc',
            timeFormat: 'H:ii',
            yearText: 'Év',
            nowText: 'Most',
            pmText: 'pm',
            amText: 'am',
            firstDay: 1,
            dateText: 'Dátum',
            timeText: 'Idő',
            calendarText: 'Naptár',
            todayText: 'Ma',
            prevMonthText: 'Előző hónap',
            nextMonthText: 'Következő hónap',
            prevYearText: 'Előző év',
            nextYearText: 'Következő év',
            closeText: 'Bezár',
            eventText: 'esemény',
            eventsText: 'esemény',
            fromText: 'Eleje',
            toText: 'Vége',
            wholeText: 'Egész',
            fractionText: 'Tört',
            unitText: 'Egység',
            labels: ['Év', 'Hónap', 'Nap', 'Óra', 'Perc', 'Másodperc', ''],
            labelsShort: ['Év', 'Hó.', 'Nap', 'Óra', 'Perc', 'Mp.', ''],
            startText: 'Indít',
            stopText: 'Megállít',
            resetText: 'Visszaállít',
            lapText: 'Lap',
            hideText: 'Elrejt',
            backText: 'Vissza',
            undoText: 'Visszavon',
            offText: 'Ki',
            onText: 'Be',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.it = {
            setText: 'OK',
            cancelText: 'Annulla',
            clearText: 'Chiarire',
            selectedText: '{count} selezionato',
            selectedPluralText: '{count} selezionati',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Domenica', 'Lunedì', 'Mertedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
            dayNamesShort: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
            dayNamesMin: ['D', 'L', 'M', 'M', 'G', 'V', 'S'],
            dayText: 'Giorno',
            hourText: 'Ore',
            minuteText: 'Minuti',
            monthNames: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
            monthNamesShort: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'],
            monthText: 'Mese',
            secText: 'Secondi',
            timeFormat: 'HH:ii',
            yearText: 'Anno',
            nowText: 'Ora',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Oggi',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Volta',
            calendarText: 'Calendario',
            closeText: 'Chiudere',
            fromText: 'Inizio',
            toText: 'Fine',
            wholeText: 'Intero',
            fractionText: 'Frazione',
            unitText: 'Unità',
            labels: ['Anni', 'Mesi', 'Giorni', 'Ore', 'Minuti', 'Secondi', ''],
            labelsShort: ['Anni', 'Mesi', 'Gio', 'Ore', 'Min', 'Sec', ''],
            startText: 'Inizio',
            stopText: 'Arresto',
            resetText: 'Ripristina',
            lapText: 'Lap',
            hideText: 'Nascondi',
            backText: 'Indietro',
            undoText: 'Annulla',
            offText: 'Via',
            onText: 'Su',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.ja = {
            setText: 'セット',
            cancelText: 'キャンセル',
            clearText: 'クリア',
            selectedText: '{count} 選択',
            dateFormat: 'yy年mm月dd日',
            dayNames: ['日', '月', '火', '水', '木', '金', '土'],
            dayNamesShort: ['日', '月', '火', '水', '木', '金', '土'],
            dayNamesMin: ['日', '月', '火', '水', '木', '金', '土'],
            dayText: '日',
            hourText: '時',
            minuteText: '分',
            monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
            monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
            monthText: '月',
            secText: '秒',
            timeFormat: 'HH:ii',
            yearText: '年',
            nowText: '今',
            pmText: '午後',
            amText: '午前',
            yearSuffix: '年',
            monthSuffix: '月',
            daySuffix: '日',
            todayText: '今日',
            dateText: '日付',
            timeText: '時間',
            calendarText: 'カレンダー',
            closeText: 'クローズ',
            fromText: '開始',
            toText: '終わり',
            wholeText: '全数',
            fractionText: '分数',
            unitText: '単位',
            labels: ['年間', '月間', '日間', '時間', '分', '秒', ''],
            labelsShort: ['年間', '月間', '日間', '時間', '分', '秒', ''],
            startText: '開始',
            stopText: '停止',
            resetText: 'リセット',
            lapText: 'ラップ',
            hideText: '隠す',
            backText: 'バック',
            undoText: 'アンドゥ'
        };
        Z2K.i18n.lt = {
            setText: 'OK',
            cancelText: 'Atšaukti',
            clearText: 'Išvalyti',
            selectedText: 'Pasirinktas {count}',
            selectedPluralText: 'Pasirinkti {count}',
            dateFormat: 'yy-mm-dd',
            dayNames: ['Sekmadienis', 'Pirmadienis', 'Antradienis', 'Trečiadienis', 'Ketvirtadienis', 'Penktadienis', 'Šeštadienis'],
            dayNamesShort: ['S', 'Pr', 'A', 'T', 'K', 'Pn', 'Š'],
            dayNamesMin: ['S', 'Pr', 'A', 'T', 'K', 'Pn', 'Š'],
            dayText: 'Diena',
            hourText: 'Valanda',
            minuteText: 'Minutes',
            monthNames: ['Sausis', 'Vasaris', 'Kovas', 'Balandis', 'Gegužė', 'Birželis', 'Liepa', 'Rugpjūtis', 'Rugsėjis', 'Spalis', 'Lapkritis', 'Gruodis'],
            monthNamesShort: ['Sau', 'Vas', 'Kov', 'Bal', 'Geg', 'Bir', 'Lie', 'Rugp', 'Rugs', 'Spa', 'Lap', 'Gruo'],
            monthText: 'Mėnuo',
            secText: 'Sekundes',
            amText: 'am',
            pmText: 'pm',
            timeFormat: 'HH:ii',
            yearText: 'Metai',
            nowText: 'Dabar',
            todayText: 'Šiandien',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Laikas',
            calendarText: 'Kalendorius',
            closeText: 'Uždaryti',
            fromText: 'Nuo',
            toText: 'Iki',
            wholeText: 'Visas',
            fractionText: 'Frakcija',
            unitText: 'Vienetas',
            labels: ['Metai', 'Mėnesiai', 'Dienos', 'Valandos', 'Minutes', 'Sekundes', ''],
            labelsShort: ['m', 'mėn.', 'd', 'h', 'min', 's', ''],
            startText: 'Pradėti',
            stopText: 'Sustabdyti',
            resetText: 'Išnaujo',
            lapText: 'Ratas',
            hideText: 'Slėpti',
            backText: 'Atgal',
            undoText: 'Anuliuoti',
            offText: 'Išj.',
            onText: 'Įj.',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.nl = {
            setText: 'Instellen',
            cancelText: 'Annuleren',
            clearText: 'Duidelijk',
            selectedText: '{count} gekozen',
            dateFormat: 'dd-mm-yy',
            dayNames: ['zondag', 'maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
            dayNamesShort: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
            dayNamesMin: ['z', 'm', 'd', 'w', 'd', 'v', 'z'],
            dayText: 'Dag',
            hourText: 'Uur',
            minuteText: 'Minuten',
            monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
            monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
            monthText: 'Maand',
            secText: 'Seconden',
            timeFormat: 'HH:ii',
            yearText: 'Jaar',
            nowText: 'Nu',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Vandaag',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Tijd',
            calendarText: 'Kalender',
            closeText: 'Sluiten',
            fromText: 'Start',
            toText: 'Einde',
            wholeText: 'geheel',
            fractionText: 'fractie',
            unitText: 'eenheid',
            labels: ['Jaren', 'Maanden', 'Dagen', 'Uren', 'Minuten', 'Seconden', ''],
            labelsShort: ['j', 'm', 'd', 'u', 'min', 'sec', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Reset',
            lapText: 'Ronde',
            hideText: 'Verbergen',
            backText: 'Terug',
            undoText: 'Onged. maken',
            offText: 'Uit',
            onText: 'Aan',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.no = {
            setText: 'OK',
            cancelText: 'Avbryt',
            clearText: 'Tømme',
            selectedText: '{count} valgt',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
            dayNamesShort: ['Sø', 'Ma', 'Ti', 'On', 'To', 'Fr', 'Lø'],
            dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
            dayText: 'Dag',
            delimiter: '.',
            hourText: 'Time',
            minuteText: 'Minutt',
            monthNames: ['Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
            monthText: 'Måned',
            secText: 'Sekund',
            timeFormat: 'HH:ii',
            yearText: 'År',
            nowText: 'Nå',
            pmText: 'pm',
            amText: 'am',
            todayText: 'I dag',
            firstDay: 1,
            dateText: 'Dato',
            timeText: 'Tid',
            calendarText: 'Kalender',
            closeText: 'Lukk',
            fromText: 'Start',
            toText: 'End',
            wholeText: 'Hele',
            fractionText: 'Fraksjon',
            unitText: 'Enhet',
            labels: ['År', 'Måneder', 'Dager', 'Timer', 'Minutter', 'Sekunder', ''],
            labelsShort: ['År', 'Mån', 'Dag', 'Time', 'Min', 'Sek', ''],
            startText: 'Start',
            stopText: 'Stopp',
            resetText: 'Tilbakestille',
            lapText: 'Runde',
            hideText: 'Skjul',
            backText: 'Tilbake',
            undoText: 'Angre',
            offText: 'Av',
            onText: 'På',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.pl = {
            setText: 'Zestaw',
            cancelText: 'Anuluj',
            clearText: 'Oczyścić',
            selectedText: 'Wybór: {count}',
            dateFormat: 'yy-mm-dd',
            dayNames: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'],
            dayNamesShort: ['Niedz.', 'Pon.', 'Wt.', 'Śr.', 'Czw.', 'Pt.', 'Sob.'],
            dayNamesMin: ['N', 'P', 'W', 'Ś', 'C', 'P', 'S'],
            dayText: 'Dzień',
            hourText: 'Godziny',
            minuteText: 'Minuty',
            monthNames: ['Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień'],
            monthNamesShort: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'],
            monthText: 'Miesiąc',
            secText: 'Sekundy',
            timeFormat: 'HH:ii',
            yearText: 'Rok',
            nowText: 'Teraz',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Dzisiaj',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Czas',
            calendarText: 'Kalendarz',
            closeText: 'Zakończenie',
            fromText: 'Rozpoczęcie',
            toText: 'Koniec',
            wholeText: 'Cały',
            fractionText: 'Ułamek',
            unitText: 'Jednostka',
            labels: ['Lata', 'Miesiąc', 'Dni', 'Godziny', 'Minuty', 'Sekundy', ''],
            labelsShort: ['R', 'M', 'Dz', 'Godz', 'Min', 'Sek', ''],
            startText: 'Rozpoczęcie',
            stopText: 'Zatrzymać',
            resetText: 'Zresetować',
            lapText: 'Zakładka',
            hideText: 'Ukryć',
            backText: 'Wróć',
            undoText: 'Cofnij',
            offText: 'Wył',
            onText: 'Wł',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n['pt-BR'] = {
            setText: 'Selecionar',
            cancelText: 'Cancelar',
            clearText: 'Claro',
            selectedText: '{count} selecionado',
            selectedPluralText: '{count} selecionados',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'],
            dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'],
            dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],
            dayText: 'Dia',
            hourText: 'Hora',
            minuteText: 'Minutos',
            monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
            monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
            monthText: 'Mês',
            secText: 'Segundo',
            timeFormat: 'HH:ii',
            yearText: 'Ano',
            nowText: 'Agora',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Hoje',
            dateText: 'Data',
            timeText: 'Tempo',
            calendarText: 'Calendário',
            closeText: 'Fechar',
            fromText: 'In&iacute;cio',
            toText: 'Fim',
            wholeText: 'Inteiro',
            fractionText: 'Fração',
            unitText: 'Unidade',
            labels: ['Anos', 'Meses', 'Dias', 'Horas', 'Minutos', 'Segundos', ''],
            labelsShort: ['Ano', 'M&ecirc;s', 'Dia', 'Hora', 'Min', 'Seg', ''],
            startText: 'Começar',
            stopText: 'Pare',
            resetText: 'Reinicializar',
            lapText: 'Lap',
            hideText: 'Esconder',
            backText: 'Anterior',
            undoText: 'Desfazer',
            offText: 'Desl',
            onText: 'Lig',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n['pt-PT'] = {
            setText: 'Seleccionar',
            cancelText: 'Cancelar',
            clearText: 'Claro',
            selectedText: '{count} selecionado',
            selectedPluralText: '{count} selecionados',
            dateFormat: 'dd-mm-yy',
            dayNames: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'S&aacute;bado'],
            dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'S&aacute;b'],
            dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],
            dayText: 'Dia',
            hourText: 'Horas',
            minuteText: 'Minutos',
            monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
            monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
            monthText: 'M&ecirc;s',
            secText: 'Segundo',
            timeFormat: 'HH:ii',
            yearText: 'Ano',
            nowText: 'Actualizar',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Hoy',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Tempo',
            calendarText: 'Calend&aacute;rio',
            closeText: 'Fechar',
            fromText: 'In&iacute;cio',
            toText: 'Fim',
            wholeText: 'Inteiro',
            fractionText: 'Frac&ccedil;&atilde;o',
            unitText: 'Unidade',
            labels: ['Anos', 'Meses', 'Dias', 'Horas', 'Minutos', 'Segundos', ''],
            labelsShort: ['Ano', 'M&ecirc;s', 'Dia', 'Hora', 'Min', 'Seg', ''],
            startText: 'Come&ccedil;ar',
            stopText: 'Parar',
            resetText: 'Reinicializar',
            lapText: 'Lap',
            hideText: 'Esconder',
            backText: 'Anterior',
            undoText: 'Anular',
            offText: 'Desl',
            onText: 'Lig',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.ro = {
            setText: 'Setare',
            cancelText: 'Anulare',
            clearText: 'Ştergere',
            selectedText: '{count} selectat',
            selectedPluralText: '{count} selectate',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Duminică', 'Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'],
            dayNamesShort: ['Du', 'Lu', 'Ma', 'Mi', 'Jo', 'Vi', 'Sâ'],
            dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
            dayText: ' Ziua',
            delimiter: '.',
            hourText: ' Ore ',
            minuteText: 'Minute',
            monthNames: ['Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie'],
            monthNamesShort: ['Ian.', 'Feb.', 'Mar.', 'Apr.', 'Mai', 'Iun.', 'Iul.', 'Aug.', 'Sept.', 'Oct.', 'Nov.', 'Dec.'],
            monthText: 'Luna',
            secText: 'Secunde',
            timeFormat: 'HH:ii',
            yearText: 'Anul',
            nowText: 'Acum',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Astăzi',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Ora',
            calendarText: 'Calendar',
            closeText: 'Închidere',
            fromText: 'Start',
            toText: 'Final',
            wholeText: 'Complet',
            fractionText: 'Parţial',
            unitText: 'Unitate',
            labels: ['Ani', 'Luni', 'Zile', 'Ore', 'Minute', 'Secunde', ''],
            labelsShort: ['Ani', 'Luni', 'Zile', 'Ore', 'Min.', 'Sec.', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Resetare',
            lapText: 'Tură',
            hideText: 'Ascundere',
            backText: 'Înapoi',
            undoText: 'Anulează',
            offText: 'Nu',
            onText: 'Da',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n['ru-UA'] = {
            setText: 'Установить',
            cancelText: 'Отменить',
            clearText: 'Очиститьr',
            selectedText: '{count} Вібрать',
            dateFormat: 'dd.mm.yy',
            dayNames: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
            dayNamesShort: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
            dayNamesMin: ['в', 'п', 'в', 'с', 'ч', 'п', 'с'],
            dayText: 'День',
            delimiter: '.',
            hourText: 'Часы',
            minuteText: 'Минуты',
            monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
            monthNamesShort: ['Янв.', 'Февр.', 'Март', 'Апр.', 'Май', 'Июнь', 'Июль', 'Авг.', 'Сент.', 'Окт.', 'Нояб.', 'Дек.'],
            monthText: 'Месяцы',
            secText: 'Сикунды',
            timeFormat: 'HH:ii',
            yearText: 'Год',
            nowText: 'Сейчас',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Cегодня',
            firstDay: 1,
            dateText: 'Дата',
            timeText: 'Время',
            calendarText: 'Календарь',
            closeText: 'Закрыть',
            fromText: 'Начало',
            toText: 'Конец',
            wholeText: 'Весь',
            fractionText: 'Часть',
            unitText: 'Единица',
            labels: ['Годы', ' Месяцы ', ' Дни ', ' Часы ', ' Минуты ', ' Секунды', ''],
            labelsShort: ['Год', 'Мес.', 'Дн.', 'Ч.', 'Мин.', 'Сек.', ''],
            startText: 'Старт',
            stopText: 'Стоп',
            resetText: ' Сброс ',
            lapText: ' Этап ',
            hideText: ' Скрыть ',
            backText: 'назад',
            undoText: 'ОтменитЬ',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n['ru-RU'] = Z2K.i18n.ru = {
            setText: 'Установить',
            cancelText: 'Отмена',
            clearText: 'Очистить',
            selectedText: '{count} Выбрать',
            dateFormat: 'dd.mm.yy',
            dayNames: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
            dayNamesShort: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
            dayNamesMin: ['в', 'п', 'в', 'с', 'ч', 'п', 'с'],
            dayText: 'День',
            delimiter: '.',
            hourText: 'Час',
            minuteText: 'Минут',
            monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
            monthNamesShort: ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'],
            monthText: 'Месяц',
            secText: 'Секунд',
            timeFormat: 'HH:ii',
            yearText: 'Год',
            nowText: 'Сейчас',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Cегодня',
            firstDay: 1,
            dateText: 'Дата',
            timeText: 'Время',
            calendarText: 'Календарь',
            closeText: 'Закрыть',
            fromText: 'Начало',
            toText: 'Конец',
            wholeText: 'Целое',
            fractionText: 'Дробное',
            unitText: 'Единица',
            labels: ['Лет', 'Месяцев', 'Дней', 'Часов', 'Минут', 'Секунд', ''],
            labelsShort: ['Лет', 'Мес', 'Дн', 'Час', 'Мин', 'Сек', ''],
            startText: 'Старт',
            stopText: 'Стоп',
            resetText: 'Сбросить',
            lapText: 'Круг',
            hideText: 'Скрыть',
            backText: 'назад',
            undoText: 'ОтменитЬ',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.sk = {
            setText: 'Zadaj',
            cancelText: 'Zrušiť',
            clearText: 'Vymazať',
            selectedText: 'Označený: {count}',
            dateFormat: 'd.m.yy',
            dayNames: ['Nedeľa', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota'],
            dayNamesShort: ['Ne', 'Po', 'Ut', 'St', 'Št', 'Pi', 'So'],
            dayNamesMin: ['N', 'P', 'U', 'S', 'Š', 'P', 'S'],
            dayText: 'Ďeň',
            hourText: 'Hodiny',
            minuteText: 'Minúty',
            monthNames: ['Január', 'Február', 'Marec', 'Apríl', 'Máj', 'Jún', 'Júl', 'August', 'September', 'Október', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Máj', 'Jún', 'Júl', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Mesiac',
            secText: 'Sekundy',
            timeFormat: 'H:ii',
            yearText: 'Rok',
            nowText: 'Teraz',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Dnes',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Čas',
            calendarText: 'Kalendár',
            closeText: 'Zavrieť',
            fromText: 'Začiatok',
            toText: 'Koniec',
            wholeText: 'Celý',
            fractionText: 'Časť',
            unitText: 'Jednotka',
            labels: ['Roky', 'Mesiace', 'Dni', 'Hodiny', 'Minúty', 'Sekundy', ''],
            labelsShort: ['Rok', 'Mes', 'Dni', 'Hod', 'Min', 'Sec', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Resetovať',
            lapText: 'Etapa',
            hideText: 'Schovať',
            backText: 'Späť',
            undoText: 'Späť',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        Z2K.i18n.sv = {
            setText: 'OK',
            cancelText: 'Avbryt',
            clearText: 'Klara',
            selectedText: '{count} vald',
            dateFormat: 'yy-mm-dd',
            dayNames: ['Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'],
            dayNamesShort: ['Sö', 'Må', 'Ti', 'On', 'To', 'Fr', 'Lö'],
            dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
            dayText: 'Dag',
            hourText: 'Timme',
            minuteText: 'Minut',
            monthNames: ['Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Månad',
            secText: 'Sekund',
            timeFormat: 'HH:ii',
            yearText: 'År',
            nowText: 'Nu',
            pmText: 'pm',
            amText: 'am',
            todayText: 'I dag',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Tid',
            calendarText: 'Kalender',
            closeText: 'Stäng',
            fromText: 'Start',
            toText: 'Slut',
            wholeText: 'Hela',
            fractionText: 'Bråk',
            unitText: 'Enhet',
            labels: ['År', 'Månader', 'Dagar', 'Timmar', 'Minuter', 'Sekunder', ''],
            labelsShort: ['År', 'Mån', 'Dag', 'Tim', 'Min', 'Sek', ''],
            startText: 'Start',
            stopText: 'Stopp',
            resetText: 'Återställ',
            lapText: 'Varv',
            hideText: 'Dölj',
            backText: 'Tillbaka',
            undoText: 'Ångra',
            offText: 'Av',
            onText: 'På'
        };
        Z2K.i18n.tr = {
            setText: 'Seç',
            cancelText: 'İptal',
            clearText: 'Temizleyin',
            selectedText: '{count} seçilmiş',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
            dayNamesShort: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
            dayNamesMin: ['P', 'P', 'S', 'Ç', 'P', 'C', 'C'],
            dayText: 'Gün',
            delimiter: '.',
            hourText: 'Saat',
            minuteText: 'Dakika',
            monthNames: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
            monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
            monthText: 'Ay',
            secText: 'Saniye',
            timeFormat: 'HH:ii',
            yearText: 'Yıl',
            nowText: 'Şimdi',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Bugün',
            firstDay: 1,
            dateText: 'Tarih',
            timeText: 'Zaman',
            calendarText: 'Takvim',
            closeText: 'Kapatmak',
            fromText: 'Başla',
            toText: 'Son',
            wholeText: 'Tam',
            fractionText: 'Kesir',
            unitText: 'Birim',
            labels: ['Yıl', 'Ay', 'Gün', 'Saat', 'Dakika', 'Saniye', ''],
            labelsShort: ['Yıl', 'Ay', 'Gün', 'Sa', 'Dak', 'Sn', ''],
            startText: 'Başla',
            stopText: 'Durdur',
            resetText: 'Sıfırla',
            lapText: 'Tur',
            hideText: 'Gizle',
            backText: 'Geri',
            undoText: 'Geri Al',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: '.'
        };
        Z2K.i18n.zh = {
            setText: '确定',
            cancelText: '取消',
            clearText: '明确',
            selectedText: '{count} 选',
            dateFormat: 'yy/mm/dd',
            dayNames: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
            dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
            dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
            dayText: '日',
            hourText: '时',
            minuteText: '分',
            monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
            monthNamesShort: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'],
            monthText: '月',
            secText: '秒',
            timeFormat: 'HH:ii',
            yearText: '年',
            nowText: '当前',
            pmText: '下午',
            amText: '上午',
            todayText: '今天',
            dateText: '日',
            timeText: '时间',
            calendarText: '日历',
            closeText: '关闭',
            fromText: '开始时间',
            toText: '结束时间',
            wholeText: '合计',
            fractionText: '分数',
            unitText: '单位',
            labels: ['年', '月', '日', '小时', '分钟', '秒', ''],
            labelsShort: ['年', '月', '日', '点', '分', '秒', ''],
            startText: '开始',
            stopText: '停止',
            resetText: '重置',
            lapText: '圈',
            hideText: '隐藏',
            backText: '背部',
            undoText: '复原',
            offText: '关闭',
            onText: '开启',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        var l0K = Z2K.themes;
        var H1K = Z2K.$;
        l0K.frame['android-holo'] = {};
        l0K.scroller['android-holo'] = H1K.extend({}, l0K.frame['android-holo'], {
            dateDisplay: 'Mddyy',
            rows: 5,
            minWidth: 76,
            height: 36,
            showLabel: false,
            selectedLineHeight: true,
            selectedLineBorder: 2,
            useShortLabels: true,
            icon: {
                filled: 'star3',
                empty: 'star'
            },
            btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down6',
            btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up6'
        });
        l0K.form['android-holo'] = {};
        var y0K = Z2K.themes;
        var m2K = Z2K.$;
        y0K.frame.bootstrap = {
            disabledClass: 'disabled',
            activeClass: 'btn-primary',
            activeTabClass: 'active',
            todayClass: 'text-primary',
            onMarkupInserted: function Z8q(j8q) {
                var M8q = m2K(j8q.target);
                m2K('.mbsc-fr-popup', M8q).addClass('popover');
                m2K('.mbsc-fr-w', M8q).addClass('popover-content');
                m2K('.mbsc-fr-hdr', M8q).addClass('popover-title');
                m2K('.mbsc-fr-arr-i', M8q).addClass('popover');
                m2K('.mbsc-fr-arr', M8q).addClass('arrow');
                m2K('.mbsc-fr-btn', M8q).addClass('btn btn-default');
                m2K('.mbsc-fr-btn-s .mbsc-fr-btn', M8q).removeClass('btn-default').addClass('btn btn-primary');
                m2K('.mbsc-sc-btn-plus', M8q).addClass('glyphicon glyphicon-chevron-down');
                m2K('.mbsc-sc-btn-minus', M8q).addClass('glyphicon glyphicon-chevron-up');
                m2K('.mbsc-cal-next .mbsc-cal-btn-txt', M8q).prepend('<i class="glyphicon glyphicon-chevron-right"></i>');
                m2K('.mbsc-cal-prev .mbsc-cal-btn-txt', M8q).prepend('<i class="glyphicon glyphicon-chevron-left"></i>');
                m2K('.mbsc-cal-tabs ul', M8q).addClass('nav nav-tabs');
                m2K('.mbsc-cal-sc-c', M8q).addClass('popover');
                m2K('.mbsc-cal-week-nrs-c', M8q).addClass('popover');
                m2K('.mbsc-cal-events', M8q).addClass('popover');
                m2K('.mbsc-cal-events-arr', M8q).addClass('arrow');
                m2K('.mbsc-range-btn', M8q).addClass('btn btn-sm btn-small btn-default');
                m2K('.mbsc-np-btn', M8q).addClass('btn btn-default');
                m2K('.mbsc-sel-filter-cont', M8q).removeClass('mbsc-input');
                m2K('.mbsc-sel-filter-input', M8q).addClass('form-control');
            },
            onPosition: function J8q(G8q) {
                setTimeout(function() {
                    m2K('.mbsc-fr-bubble-top, .mbsc-fr-bubble-top .mbsc-fr-arr-i', G8q.target).removeClass('bottom').addClass('top');
                    m2K('.mbsc-fr-bubble-bottom, .mbsc-fr-bubble-bottom .mbsc-fr-arr-i', G8q.target).removeClass('top').addClass('bottom');
                }, 10);
            }
        };
        y0K.scroller.bootstrap = m2K.extend({}, y0K.frame.bootstrap, {
            dateDisplay: 'Mddyy',
            btnCalPrevClass: '',
            btnCalNextClass: '',
            selectedLineHeight: true,
            onEventBubbleShow: function P8q(k8q) {
                var V8q = m2K(k8q.eventList);
                m2K('.mbsc-cal-event-list', V8q).addClass('list-group');
                m2K('.mbsc-cal-event', V8q).addClass('list-group-item');
                setTimeout(function() {
                    if (V8q.hasClass('mbsc-cal-events-b')) {
                        V8q.removeClass('top').addClass('bottom');
                    } else {
                        V8q.removeClass('bottom').addClass('top');
                    }
                }, 10);
            }
        });
        y0K.menustrip.bootstrap = {
            wrapperClass: 'popover panel panel-default',
            groupClass: 'btn-group',
            activeClass: 'btn-primary',
            disabledClass: 'disabled',
            itemClass: 'btn btn-default'
        };
        var d0K = Z2K.themes;
        var z1K = Z2K.$;
        d0K.frame.ios = {
            display: 'bottom',
            headerText: false,
            btnWidth: false,
            deleteIcon: 'ios-backspace',
            scroll3d: true
        };
        d0K.scroller.ios = z1K.extend({}, d0K.frame.ios, {
            rows: 5,
            height: 34,
            minWidth: 55,
            selectedLineHeight: true,
            selectedLineBorder: 1,
            showLabel: false,
            useShortLabels: true,
            btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down5',
            btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up5',
            checkIcon: 'ion-ios7-checkmark-empty',
            filterClearIcon: 'ion-close-circled',
            dateDisplay: 'MMdyy',
            btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left5',
            btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right5'
        });
        d0K.listview.ios = {
            leftArrowClass: 'mbsc-ic-ion-ios7-arrow-back',
            rightArrowClass: 'mbsc-ic-ion-ios7-arrow-forward'
        };
        d0K.form.ios = {};
        var u2K;
        var V0K;
        var R2K = Z2K.$;
        var J0K = Z2K.themes;
        var o4K = Z2K.util;
        var M1K = o4K.testTouch;
        var k0K = o4K.getCoord;
        J0K.frame.material = {
            headerText: false,
            btnWidth: false,
            deleteIcon: 'material-backspace',
            onMarkupReady: function T8q(X8q) {
                D1K(R2K(X8q.target), '.mbsc-fr-btn-e', 'mbsc-fr-btn-d', 'mbsc-fr-btn-nhl');
            }
        };
        J0K.scroller.material = R2K.extend({}, J0K.frame.material, {
            showLabel: false,
            selectedLineBorder: 2,
            weekDays: 'min',
            icon: {
                filled: 'material-star',
                empty: 'material-star-outline'
            },
            checkIcon: 'material-check',
            btnPlusClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-down',
            btnMinusClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-up',
            btnCalPrevClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-left',
            btnCalNextClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-right',
            onEventBubbleShow: function r8q(I8q) {
                var a8q = R2K(I8q.eventList),
                    p8q = R2K(I8q.target).closest('.mbsc-cal-row').index() < 2,
                    t8q = R2K('.mbsc-cal-event-color', a8q).eq(p8q ? 0 : -1).css('background-color');
                R2K('.mbsc-cal-events-arr', a8q).css('border-color', p8q ? 'transparent transparent ' + t8q + ' transparent' : t8q + 'transparent transparent transparent');
            }
        });
        J0K.listview.material = {
            leftArrowClass: 'mbsc-ic-material-keyboard-arrow-left',
            rightArrowClass: 'mbsc-ic-material-keyboard-arrow-right',
            onItemActivate: function E8q(u8q) {
                L6K(R2K(u8q.target), u8q.domEvent);
            },
            onItemDeactivate: function o8q() {
                N4K(V0K);
            },
            onSlideStart: function U8q(c8q) {
                R2K('.mbsc-ripple', c8q.target).remove();
            },
            onSortStart: function q9q(N9q) {
                R2K('.mbsc-ripple', N9q.target).remove();
            }
        };
        J0K.menustrip.material = {
            onInit: function s9q() {
                D1K(R2K(this), '.mbsc-ms-item.mbsc-btn-e', 'mbsc-btn-d', 'mbsc-btn-nhl');
            },
            onMarkupInit: function h9q() {
                R2K('.mbsc-ripple', this).remove();
            },
            onDestroy: function L9q() {
                R2K(this).off('.mbsc-ripple');
            }
        };
        J0K.form.material = {
            addRipple: function n9q(i9q, x9q) {
                L6K(i9q, x9q);
            },
            removeRipple: function w9q() {
                N4K(V0K);
            }
        };
        var T2K = Z2K.$;
        var x4K = Z2K.themes;
        x4K.frame.wp = {
            headerText: false,
            deleteIcon: 'backspace4',
            setIcon: 'checkmark',
            cancelIcon: 'close',
            closeIcon: 'close',
            clearIcon: 'close',
            okIcon: 'checkmark',
            nowIcon: 'loop2',
            startIcon: 'play3',
            stopIcon: 'pause2',
            resetIcon: 'stop2',
            lapIcon: 'loop2',
            btnWidth: false
        };
        x4K.scroller.wp = T2K.extend({}, x4K.frame.wp, {
            minWidth: 76,
            height: 76,
            dateDisplay: 'mmMMddDDyy',
            showLabel: false,
            icon: {
                filled: 'star3',
                empty: 'star'
            },
            btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left2',
            btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right2',
            btnPlusClass: 'mbsc-ic mbsc-ic-plus',
            btnMinusClass: 'mbsc-ic mbsc-ic-minus',
            onMarkupInserted: function K9q(j9q, J9q) {
                function G9q(P9q) {
                    return T2K.isArray(S9q.readonly) ? S9q.readonly[P9q] : S9q.readonly;
                }
                var O9q, C9q, M9q, Z9q = T2K(j9q.target),
                    S9q = J9q.settings;
                T2K('.mbsc-sc-whl', Z9q).on('touchstart mousedown wheel mousewheel', function(V9q) {
                    if (V9q.type === 'mousedown' && C9q || G9q(T2K(this).attr('data-index'))) {
                        return;
                    }
                    C9q = V9q.type === 'touchstart';
                    O9q = true;
                    M9q = T2K(this).hasClass('mbsc-sc-whl-wpa');
                    T2K('.mbsc-sc-whl', Z9q).removeClass('mbsc-sc-whl-wpa');
                    T2K(this).addClass('mbsc-sc-whl-wpa');
                }).on('touchmove mousemove', function() {
                    O9q = false;
                }).on('touchend mouseup', function(k9q) {
                    if (O9q && M9q && T2K(k9q.target).closest('.mbsc-sc-itm').hasClass('mbsc-sc-itm-sel')) {
                        T2K(this).removeClass('mbsc-sc-whl-wpa');
                    }
                    if (k9q.type === 'mouseup') {
                        C9q = false;
                    }
                    O9q = false;
                });
            }
        });
        x4K.form.wp = {};
        Z2K.customTheme('android-holo-light', 'android-holo');
        Z2K.customTheme('ios-dark', 'ios');
        Z2K.customTheme('material-dark', 'material');
        Z2K.customTheme('mobiscroll-dark', 'mobiscroll');
        Z2K.customTheme('wp-light', 'wp');
        var y1K = Z2K.themes;
        var s1K = Z2K.$;
        var G0K = void 0;
        if (w0K.name == 'android') {
            G0K = w0K.majorVersion >= 5 ? 'material' : 'android-holo';
        } else if (w0K.name == 'ios') {
            G0K = 'ios';
        } else if (w0K.name == 'wp') {
            G0K = 'wp';
        }
        Z2K.setAutoTheme = function() {
            s1K.each(y1K.frame, function(Y9q, m9q) {
                if (G0K && m9q.baseTheme == G0K && Y9q != 'android-holo-light' && Y9q != 'material-dark' && Y9q != 'wp-light' && Y9q != 'ios-dark') {
                    Z2K.autoTheme = Y9q;
                    return false;
                } else if (Y9q == G0K) {
                    Z2K.autoTheme = Y9q;
                }
            });
        };
        Z2K.setAutoTheme();
        return Z2K;
    }(angular);
    return mobiscroll;
}));